Update nfs on Prophet

This commit is contained in:
Bun 2025-04-17 01:23:40 -04:00
parent c5157f5da8
commit 531176d415
3 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@
cloudflare-dyndns.enable = true; cloudflare-dyndns.enable = true;
mailserver.enable = true; mailserver.enable = true;
mysql.enable = true; mysql.enable = true;
nfs.server.enable = true;
nginx.enable = true; nginx.enable = true;
}; };
} }

View file

@ -41,5 +41,10 @@
fsType = "nfs4"; fsType = "nfs4";
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ]; 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" ];
};
}; };
} }

View file

@ -4,6 +4,6 @@
config = lib.mkIf config.services.nfs.server.enable { config = lib.mkIf config.services.nfs.server.enable {
services.nfs.server.exports = "/storage *(rw,sync,no_subtree_check)"; 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";
}; };
} }