forked from nyanloutre/nixos-config
Activation NFS
This commit is contained in:
parent
b9d9a589c3
commit
2eee865abc
22
services.nix
22
services.nix
@ -68,15 +68,15 @@ in
|
|||||||
services.syncthing.dataDir = "/var/lib/syncthing";
|
services.syncthing.dataDir = "/var/lib/syncthing";
|
||||||
services.syncthing.openDefaultPorts = true;
|
services.syncthing.openDefaultPorts = true;
|
||||||
|
|
||||||
# services.nfs.server = {
|
services.nfs.server = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# exports = ''
|
exports = ''
|
||||||
# /exports/steam 192.168.1.0/24(rw,no_root_squash)
|
/mnt/medias 192.168.0.0/24(ro,no_root_squash)
|
||||||
# '';
|
'';
|
||||||
# statdPort = 4000;
|
statdPort = 4000;
|
||||||
# lockdPort = 4001;
|
lockdPort = 4001;
|
||||||
# mountdPort = 4002;
|
mountdPort = 4002;
|
||||||
# };
|
};
|
||||||
|
|
||||||
services.transmission.enable = true;
|
services.transmission.enable = true;
|
||||||
services.transmission.home = "/var/lib/transmission";
|
services.transmission.home = "/var/lib/transmission";
|
||||||
@ -93,12 +93,12 @@ in
|
|||||||
services.searx.enable = true;
|
services.searx.enable = true;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
# 111 2049 4000 4001 4002 # NFS
|
111 2049 4000 4001 4002 # NFS
|
||||||
3483 9000 9090 # Slimserver
|
3483 9000 9090 # Slimserver
|
||||||
51413 # Transmission
|
51413 # Transmission
|
||||||
];
|
];
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
# 111 2049 4000 4001 4002 # NFS
|
111 2049 4000 4001 4002 # NFS
|
||||||
3483 # Slimserver
|
3483 # Slimserver
|
||||||
51413 # Transmission
|
51413 # Transmission
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user