From 658cbe8f560cfc5f6f89440cdcc16c2015057b88 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 19 Nov 2024 03:36:14 +0100 Subject: Serve NFS mounts to network Signed-off-by: Mel --- machines/corsac/default.nix | 3 ++- modules/nfs.nix | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 modules/nfs.nix diff --git a/machines/corsac/default.nix b/machines/corsac/default.nix index 956f7a7..02430e8 100644 --- a/machines/corsac/default.nix +++ b/machines/corsac/default.nix @@ -6,8 +6,9 @@ ./hardware.nix ./devices.nix - + ../../modules/dns.nix + ../../modules/nfs.nix ]; system.stateVersion = "24.05"; diff --git a/modules/nfs.nix b/modules/nfs.nix new file mode 100644 index 0000000..b0895e2 --- /dev/null +++ b/modules/nfs.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + services.nfs.server = { + enable = true; + exports = '' + /srv/nfs *(rw,fsid=root) + /srv/nfs/bag *(rw,sync) + ''; + }; +} -- cgit 1.4.1