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

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

    image = "fuwn/momoka";
    autoStart = true;

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