testing idmap for nfs

This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-11 10:33:07 +02:00
parent c3d1333538
commit edcf3220a0
2 changed files with 59 additions and 1 deletions

View file

@ -10,7 +10,24 @@
];
# Enable RPC services for NFS
services.rpcbind.enable = true; # NFS server configuration
services.rpcbind.enable = true;
# NFSv4 ID mapping service
services.nfs.idmapd = {
enable = true;
settings = {
General = {
Domain = "home.lab"; # Same domain on all machines
Verbosity = 0;
};
Mapping = {
Nobody-User = "nobody";
Nobody-Group = "nogroup";
};
};
};
# NFS server configuration
services.nfs.server = {
enable = true;