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,7 +4,6 @@ let
|
||||||
# VM/GPU passthrough
|
# VM/GPU passthrough
|
||||||
"amd_iommu=on"
|
"amd_iommu=on"
|
||||||
"iommu=pt"
|
"iommu=pt"
|
||||||
"nested=1"
|
|
||||||
|
|
||||||
# Isolate devices into IOMMU groups
|
# Isolate devices into IOMMU groups
|
||||||
"pcie_acs_override=downstream,multifunction"
|
"pcie_acs_override=downstream,multifunction"
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
config = lib.mkIf config.services.nfs.server.enable {
|
config = lib.mkIf config.services.nfs.server.enable {
|
||||||
services.nfs.server.exports = "/storage *(rw)";
|
services.nfs.server.exports = "/storage *(rw)";
|
||||||
networking.firewall.extraInputRules = with config.services.mycelium.ips; ''
|
networking.firewall.extraInputRules = with lib; ''
|
||||||
ip6 saddr { ${tower}, ${intuos}, ${jupiter}, ${midas}, ${kitty}, ${prophet} } tcp dport 2049 accept
|
ip6 saddr { ${concatStringsSep ", " (attrValues config.services.mycelium.ips)} } tcp dport 2049 accept
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue