Add nextcloud export
This commit is contained in:
parent
289f48fef9
commit
659ff3b169
1 changed files with 7 additions and 0 deletions
|
|
@ -87,6 +87,7 @@
|
||||||
server.enable = true;
|
server.enable = true;
|
||||||
server.exports = ''
|
server.exports = ''
|
||||||
/export/yarr 192.168.1.0/16(rw,secure,anonuid=1000,anongid=1000,all_squash)
|
/export/yarr 192.168.1.0/16(rw,secure,anonuid=1000,anongid=1000,all_squash)
|
||||||
|
/export/nextcloud 192.168.1.0/16(rw,secure,no_root_squash)
|
||||||
/export 192.168.1.0/16(ro,fsid=0,root_squash,subtree_check,secure)
|
/export 192.168.1.0/16(ro,fsid=0,root_squash,subtree_check,secure)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -101,6 +102,12 @@
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/export/nextcloud" = {
|
||||||
|
device = "/mnt/raid/nextcloud";
|
||||||
|
fsType = "ext4";
|
||||||
|
options = [ "bind" ];
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue