Update nfs on Prophet
This commit is contained in:
parent
c5157f5da8
commit
531176d415
3 changed files with 7 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
cloudflare-dyndns.enable = true;
|
||||
mailserver.enable = true;
|
||||
mysql.enable = true;
|
||||
nfs.server.enable = true;
|
||||
nginx.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -41,5 +41,10 @@
|
|||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
"/home/${config.sysusers.main}/Network/Prophet" = {
|
||||
device = "mx.nixfox.ca:/storage";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
|
||||
config = lib.mkIf config.services.nfs.server.enable {
|
||||
services.nfs.server.exports = "/storage *(rw,sync,no_subtree_check)";
|
||||
networking.firewall.extraInputRules = "ip saddr 11.0.0.0/8 tcp dport 2049 accept";
|
||||
networking.firewall.extraInputRules = "ip saddr { 11.0.0.0/8, ${config.secrets.ips.bun} } tcp dport 2049 accept";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue