From f53a34b2e772bb169f32291b65571b17b775ffd1 Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Mon, 18 Mar 2024 09:59:28 -0600 Subject: [PATCH] Added squash for permissions --- shared/server-configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/server-configuration.nix b/shared/server-configuration.nix index 6bf1e16..f77b003 100644 --- a/shared/server-configuration.nix +++ b/shared/server-configuration.nix @@ -81,8 +81,8 @@ in services.nfs.server = lib.mkIf srvConfig.nfsEnable { enable = true; exports = '' - ${srvConfig.nfsRoot} 192.168.1.*(rw,fsid=root,no_subtree_check) - ${lib.concatMapStringsSep "\n" (n: "${srvConfig.nfsRoot}${n} 192.168.1.*(rw,no_subtree_check,nohide)") srvConfig.nfsExports} + ${srvConfig.nfsRoot} 192.168.1.1/24(rw,fsid=root,no_subtree_check,all_squash,anonuid=1001,anongid=1001) + ${lib.concatMapStringsSep "\n" (n: "${srvConfig.nfsRoot}${n} 192.168.1.1/24(rw,no_subtree_check,nohide,all_squash,anonuid=1001,anongid=1001)") srvConfig.nfsExports} ''; };