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 --- modules/nfs.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/nfs.nix (limited to 'modules/nfs.nix') 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