services: nfs fix mount point and move service file to right place
This commit is contained in:
parent
845a69089b
commit
2ce76b55eb
@ -72,11 +72,17 @@
|
||||
};
|
||||
|
||||
fileSystems."/mnt/Pluto" =
|
||||
{ device = "nas:/mnt/Pluto";
|
||||
{ device = "nas:/Pluto";
|
||||
fsType = "nfs";
|
||||
options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec" ];
|
||||
options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
||||
};
|
||||
|
||||
# fileSystems."/mnt/Pluto" =
|
||||
# { device = "nas:/Pluto/nix";
|
||||
# fsType = "nfs";
|
||||
# options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2,local_lock=all" ];
|
||||
# };
|
||||
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
/export/Pluto 192.168.2.0/24(rw,no_subtree_check)
|
||||
/export/Mars 192.168.2.0/24(rw,no_subtree_check)
|
||||
'';
|
||||
createMountPoints = true;
|
||||
};
|
||||
# open the firewall
|
||||
networking.firewall = {
|
Loading…
Reference in New Issue
Block a user