aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/arrakis/services.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-16 12:00:22 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-16 12:00:22 -0700
commit2dac20cab5dc3d50e82cf575d623be22a6c058ea (patch)
tree7f2888405e8ea6d495cd69aa9e30fba5ca7961ed /hosts/arrakis/services.nix
parent88902c97050fd66059feab31b5d03e7d81eeed45 (diff)
downloadnix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.tar
nix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.tar.gz
nix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.tar.bz2
nix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.tar.lz
nix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.tar.xz
nix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.tar.zst
nix-2dac20cab5dc3d50e82cf575d623be22a6c058ea.zip
Restrict NFS to v4
Diffstat (limited to 'hosts/arrakis/services.nix')
-rw-r--r--hosts/arrakis/services.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/hosts/arrakis/services.nix b/hosts/arrakis/services.nix
index 8054fb8..b295116 100644
--- a/hosts/arrakis/services.nix
+++ b/hosts/arrakis/services.nix
@@ -64,11 +64,21 @@
jellyfin.enable = true;
- nfs.server = {
- enable = true;
- exports = ''
- /srv/nfs 192.168.1.0/24(ro,all_squash,insecure,crossmnt,subtree_check,fsid=0)
- '';
+ nfs = {
+ server = {
+ enable = true;
+ exports = ''
+ /srv/nfs 192.168.1.0/24(ro,all_squash,insecure,crossmnt,subtree_check,fsid=0)
+ '';
+ };
+ settings = {
+ nfsd = {
+ udp = false;
+ vers2 = false;
+ vers3 = false;
+ vers4 = true;
+ };
+ };
};
nginx = {