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:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user