]> Skullheadx's Git Forge - nixos.git/commitdiff
nfs
authorSkullheadx <admonty1@protonmail.com>
Thu, 4 Jun 2026 02:03:15 +0000 (22:03 -0400)
committerSkullheadx <admonty1@protonmail.com>
Thu, 4 Jun 2026 02:03:15 +0000 (22:03 -0400)
hosts/icon/configuration.nix

index 658e4bf9504c6bde8397d70ace299fb04133cffc..06d7350439388bca71c9ff5a63d6106e80b3e725 100644 (file)
     hostName = "skullheadx.com";
   };
 
+  # NFS
+  services.nfs = {
+    server = {
+      enable = true;
+      createMountPoints = true;
+      exports = ''
+        /srv/data *(rw,sync,no_subtree_check,crossmnt,fsid=0,root_squash)
+      '';
+      extraNfsdConfig = ''
+        [nfsd]
+        vers3=off
+        vers4=yes
+        udp=off
+        tcp=on
+      '';
+    };
+  };
+
   networking.hostName = "icon";
   # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
 
   # $ nix search wget
   environment.systemPackages = with pkgs; [
     wireguard-tools
+    nfs-utils
     btop
     nethogs
   ];
   };
 
   # Open ports in the firewall.
-  networking.firewall.allowedTCPPorts = [9418 8080 6667];
-  networking.firewall.allowedUDPPorts = [55555];
+  networking.firewall.allowedTCPPorts = [9418 8080 6667 2049]; # git, gitweb, irc, nfs
+  networking.firewall.allowedUDPPorts = [55555]; # wireguard
   # Or disable the firewall altogether.
   # networking.firewall.enable = false;