From 17ecb8975ce66bb410906c27dddccd48636e6233 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 23 Jan 2024 16:14:27 -0500 Subject: [PATCH] feat(servivi): add nfs exports for cluster --- devices/servivi/modules/nfs.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devices/servivi/modules/nfs.nix diff --git a/devices/servivi/modules/nfs.nix b/devices/servivi/modules/nfs.nix new file mode 100644 index 0000000..9446e1c --- /dev/null +++ b/devices/servivi/modules/nfs.nix @@ -0,0 +1,13 @@ +# TODO: move this to NAS? + +{...}: { + services.nfs.server = { + enable = true; + createMountPoints = true; + + exports = '' + /export 10.0.0.244(rw,crossmnt,fsid=0,no_root_squash) 10.0.0.159(rw,crossmnt,fsid=0,no_root_squash) + /export/caddy 10.0.0.244(rw,nohide,no_root_squash) 10.0.0.159(rw,nohide,no_root_squash) + ''; + }; +}