Changed nfs to map to users group

This commit is contained in:
Nathan Anderson 2024-03-18 13:35:45 -06:00
parent 918d5ea085
commit a81ea65340

View File

@ -94,7 +94,7 @@ in
enable = true;
exports = ''
${srvConfig.nfsRoot} ${srvConfig.nfsIpExport}(rw,fsid=root,no_subtree_check)
${lib.concatMapStringsSep "\n" (n: "${srvConfig.nfsRoot}${n} ${srvConfig.nfsIpExport}(rw,sync,no_subtree_check,no_root_squash)") srvConfig.nfsExports}
${lib.concatMapStringsSep "\n" (n: "${srvConfig.nfsRoot}${n} ${srvConfig.nfsIpExport}(rw,sync,no_subtree_check,all_squash,anongid=100)") srvConfig.nfsExports}
'';
};
# nfs port TODO make dependant on option enabled
@ -111,6 +111,7 @@ in
# overrideDevices = true; # overrides any devices added or deleted through the WebUI
# overrideFolders = true; # overrides any folders added or deleted through the WebUI
openDefaultPorts = true;
group = "kage";
# settings = {
# devices = {
# # "supernote" = { id = "DEVICE-ID-GOES-HERE"; };