nixos/spacecookie: add openFirewall option

Convenience shortcut which automatically configures the firewall to open
the port which is also configured for the spacecookie service.
This commit is contained in:
sternenseemann
2021-04-10 15:44:19 +02:00
committed by sterni
parent 58be28d7ce
commit d1f57cbaf0
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,6 @@ in
name = "spacecookie";
nodes = {
${gopherHost} = {
networking.firewall.allowedTCPPorts = [ 70 ];
systemd.services.spacecookie = {
preStart = ''
mkdir -p ${gopherRoot}/directory
@@ -21,6 +20,7 @@ in
enable = true;
root = gopherRoot;
hostname = gopherHost;
openFirewall = true;
};
};