Simplify NFS sharing
This commit is contained in:
parent
77c2076bbd
commit
f565ee792e
1 changed files with 1 additions and 5 deletions
|
@ -5,11 +5,7 @@
|
|||
config = lib.mkIf config.services.fileserver.enable {
|
||||
services.nfs.server = {
|
||||
enable = true;
|
||||
exports = ''
|
||||
/storage/Files *(rw,sync,no_subtree_check)
|
||||
/storage/Media *(rw,sync,no_subtree_check)
|
||||
/storage/Music *(rw,sync,no_subtree_check)
|
||||
'';
|
||||
exports = "/storage *(rw,sync,no_subtree_check)";
|
||||
};
|
||||
networking.firewall.extraInputRules = "ip saddr 10.0.0.0/8 tcp dport 2049 accept";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue