summaryrefslogtreecommitdiff
path: root/odin.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-14 13:53:42 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-14 13:53:42 +0200
commit22974ed14171518997cded2236c0f01aeabd384c (patch)
treeb154c62e7a2b5b991cc38f9dea7a28bbe0a60c5c /odin.nix
parent0fae69c8f58a5cd0fb6e6440ad295db405e72165 (diff)
downloadnixos-22974ed14171518997cded2236c0f01aeabd384c.tar
nixos-22974ed14171518997cded2236c0f01aeabd384c.tar.gz
nixos-22974ed14171518997cded2236c0f01aeabd384c.tar.bz2
nixos-22974ed14171518997cded2236c0f01aeabd384c.tar.xz
nixos-22974ed14171518997cded2236c0f01aeabd384c.zip
allow nfs to odin
Diffstat (limited to 'odin.nix')
-rw-r--r--odin.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/odin.nix b/odin.nix
index d63554be..f34e1e99 100644
--- a/odin.nix
+++ b/odin.nix
@@ -62,11 +62,16 @@
62 allowPing = true; 62 allowPing = true;
63 allowedTCPPorts = [ 22 # ssh 63 allowedTCPPorts = [ 22 # ssh
64 139 445 # samba 64 139 445 # samba
65 111 2049 # nfs
65 ]; 66 ];
66 allowedTCPPortRanges = [ { from = 8080; to = 8080; } # motion 67 allowedTCPPortRanges = [ { from = 8080; to = 8080; } # motion
68 { from = 4000; to = 4002; } # nfs
67 ]; 69 ];
68 allowedUDPPorts = [ 137 138 ]; # samba 70 allowedUDPPorts = [ 137 138 # samba
71 111 2049 # nfs
72 ];
69 allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh 73 allowedUDPPortRanges = [ { from = 60000; to = 61000; } # mosh
74 { from = 4000; to = 4002; } # nfs
70 ]; 75 ];
71 }; 76 };
72 77
@@ -264,6 +269,9 @@
264 exports = '' 269 exports = ''
265 /srv/media *(ro,insecure,all_squash,no_subtree_check,mp) 270 /srv/media *(ro,insecure,all_squash,no_subtree_check,mp)
266 ''; 271 '';
272 lockdPort = 4001;
273 mountdPort = 4002;
274 statdPort = 4000;
267 }; 275 };
268 276
269 system.autoUpgrade.enable = true; 277 system.autoUpgrade.enable = true;