summaryrefslogtreecommitdiff
path: root/modules/server/virtualisation/containers/gigi.nix
blob: 4f9dd9526ec585829c030bd0e5526a6df1c5b9b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, ... }:
let
  port = 79;
in
{
  networking.firewall.allowedTCPPorts = [
    port
  ];

  virtualisation.oci-containers.containers.gigi = {
    inherit (config.modules.containers) extraOptions;

    image = "fuwn/gigi";
    autoStart = true;
    volumes = [ "/mnt/docker/gigi:/gigi/.gigi" ];

    ports =
      let
        portString = builtins.toString port;
      in
      [ "${portString}:${portString}" ];
  };
}