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