toure/server setup enhance

This commit is contained in:
Polen 2025-11-21 12:23:39 -05:00
parent fa7b157c5d
commit 81b8dceeae
3 changed files with 107 additions and 43 deletions

View file

@ -106,6 +106,33 @@ in {
};
};
# Enable mDNS for .local hostname resolution
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
addresses = true;
domain = true;
hinfo = true;
userServices = true;
workstation = true;
};
};
# NFS Client - Mount storage from latoure
fileSystems."/mnt/latoure-data" = {
device = "latoure.local:/data";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
};
fileSystems."/mnt/latoure-data1" = {
device = "latoure.local:/data1";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ];
};
networking = {
hostName = "server";
firewall.allowedTCPPorts = [
@ -119,6 +146,9 @@ in {
8989 # sonarr
10222 # taskchampion-sync-server
];
firewall.allowedUDPPorts = [
5353 # mDNS
];
};
time.timeZone = "America/Toronto";
@ -136,6 +166,7 @@ in {
wget
xmrig
tmux
nfs-utils
];
programs.zsh.enable = true;