This commit is contained in:
tulg 2026-05-09 16:00:54 +03:00
parent 64d0ab2002
commit dcf10dac05
4 changed files with 6 additions and 13 deletions

View file

@ -1,7 +1,7 @@
{
fileSystems."/export/share" = {
device = "/mnt/2tbhdd";
fsType = "nfs";
fsType = "none";
options = ["bind"];
};
services.nfs.server = {
@ -12,13 +12,9 @@
statdPort = 4000;
extraNfsdConfig = '''';
exports = ''
/export/share *(rw,sync,no_subtree_check,all_squash,insecure,anonuid=1000,anongid=100)
/export/share *(rw,sync,no_subtree_check)
'';
};
users.users.tulg = {
createHome = false;
shell = "/run/current-system/sw/bin/nologin";
};
networking.firewall = {
enable = true;
# for NFSv3; view with `rpcinfo -p`
@ -29,12 +25,11 @@
enable = true;
shares.share = {
path = "/mnt/2tbhdd/smb/";
path = "/mnt/2tbhdd/nfs";
browseable = "yes";
writable = "yes";
"guest ok" = "yes";
"read only" = "no";
"force user" = "nobody";
};
};
}