Change nfs firewall to include any included mycelium ip
This commit is contained in:
parent
1bcd590c43
commit
a4d6a7663c
2 changed files with 2 additions and 3 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
config = lib.mkIf config.services.nfs.server.enable {
|
||||
services.nfs.server.exports = "/storage *(rw)";
|
||||
networking.firewall.extraInputRules = with config.services.mycelium.ips; ''
|
||||
ip6 saddr { ${tower}, ${intuos}, ${jupiter}, ${midas}, ${kitty}, ${prophet} } tcp dport 2049 accept
|
||||
networking.firewall.extraInputRules = with lib; ''
|
||||
ip6 saddr { ${concatStringsSep ", " (attrValues config.services.mycelium.ips)} } tcp dport 2049 accept
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue