summaryrefslogtreecommitdiffstats
path: root/hosts/icon
diff options
context:
space:
mode:
authorSkullheadx <admonty1@protonmail.com>2026-06-03 22:03:15 -0400
committerSkullheadx <admonty1@protonmail.com>2026-06-03 22:03:15 -0400
commitb3038106c095363d83eb2ca573cf9cf008fce4a6 (patch)
tree93adbf745cb7ccfb63b6a3b01284dec7e9f07eb1 /hosts/icon
parentadd laptop ssh key (diff)
downloadnixos-b3038106c095363d83eb2ca573cf9cf008fce4a6.tar.gz
nixos-b3038106c095363d83eb2ca573cf9cf008fce4a6.tar.bz2
nixos-b3038106c095363d83eb2ca573cf9cf008fce4a6.zip
nfs
Diffstat (limited to 'hosts/icon')
-rw-r--r--hosts/icon/configuration.nix23
1 files changed, 21 insertions, 2 deletions
diff --git a/hosts/icon/configuration.nix b/hosts/icon/configuration.nix
index 658e4bf..06d7350 100644
--- a/hosts/icon/configuration.nix
+++ b/hosts/icon/configuration.nix
@@ -131,6 +131,24 @@
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.
@@ -142,6 +160,7 @@
# $ nix search wget
environment.systemPackages = with pkgs; [
wireguard-tools
+ nfs-utils
btop
nethogs
];
@@ -174,8 +193,8 @@
};
# 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;