Disable root_squash from NFS

Allows root to read files in the NFS export, so we can directly run
`nixos-rebuild switch` from /home.

Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
Rodrigo Arias 2025-07-11 10:35:38 +02:00
parent fdd21d0dd0
commit 3ad9452637

View File

@ -7,7 +7,7 @@
mountdPort = 4002;
statdPort = 4000;
exports = ''
/home 10.0.40.0/24(rw,sync,no_subtree_check,root_squash)
/home 10.0.40.0/24(rw,sync,no_subtree_check,no_root_squash)
'';
};
networking.firewall = {