-8
nix/modules/knot.nix
-8
nix/modules/knot.nix
···
32
description = "User that hosts git repos and performs git operations";
33
};
34
35
-
openFirewall = mkOption {
36
-
type = types.bool;
37
-
default = true;
38
-
description = "Open port 22 in the firewall for ssh";
39
-
};
40
-
41
stateDir = mkOption {
42
type = types.path;
43
default = "/home/${cfg.gitUser}";
···
205
Restart = "always";
206
};
207
};
208
-
209
-
networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [22];
210
};
211
}