aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/pinchflat/default.nix
blob: 996476d6026c123f966e491427d7d00c0a67b9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, ... }:
let
  inherit (lib.lists) singleton;
  directory = "/opt/pinchflat";
in
{
  systemd.tmpfiles.rules = builtins.map (x: "d ${x} 0755 share share - -") (singleton directory);

  virtualisation.oci-containers.containers.pinchflat = {
    image = "keglin/pinchflat:latest";
    autoStart = true;
    ports = singleton "8945:8945";
    volumes = [
      "${directory}:/config"
      "/tank/media/yt:/downloads"
    ];
    environment.TZ = "America/Detroit";
  };
}