a
This commit is contained in:
parent
64d0ab2002
commit
dcf10dac05
4 changed files with 6 additions and 13 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue