aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/pinchflat/default.nix
blob: 8ee831f6f7e19b79c698372a9e21afa2c1207bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ ... }:
let
  directories = [
    "/opt/pinchflat"
  ];
in
{
  systemd.tmpfiles.rules = map (x: "d ${x} 0755 share share - -") directories;
  virtualisation.oci-containers.containers.pinchflat = {
    image = "keglin/pinchflat:latest";
    autoStart = true;
    ports = [
      "8945:8945"
    ];
    volumes = [
      "/opt/pinchflat:/config"
      "/tank/media/yt:/downloads"
    ];
    environment = {
      TZ = "America/Detroit";
    };
  };
}