From e5e01b9b6d64c5cc94780189b0ac32ca27a9e090 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sat, 10 Jan 2026 17:00:21 -0800 Subject: [PATCH] Update networking and share config for new network. --- nixosConfigurations/fighter/default.nix | 10 ---------- nixosConfigurations/fighter/filesystems.nix | 10 +++++----- nixosConfigurations/fighter/networking.nix | 21 +++++++++++++-------- 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/nixosConfigurations/fighter/default.nix b/nixosConfigurations/fighter/default.nix index 358f84df..40d199f2 100644 --- a/nixosConfigurations/fighter/default.nix +++ b/nixosConfigurations/fighter/default.nix @@ -107,16 +107,6 @@ ''; }; - networking.hostName = hostname; - networking.hosts = { - "192.168.1.1" = ["wizard"]; - "192.168.1.12" = ["paladin"]; - "192.168.1.23" = ["fighter"]; - "192.168.1.135" = ["desktop"]; - "143.198.68.202" = ["artificer"]; - "172.245.108.219" = ["champion"]; - }; - system.stateVersion = "24.11"; # User Programs diff --git a/nixosConfigurations/fighter/filesystems.nix b/nixosConfigurations/fighter/filesystems.nix index 524dc920..d46d817e 100644 --- a/nixosConfigurations/fighter/filesystems.nix +++ b/nixosConfigurations/fighter/filesystems.nix @@ -26,7 +26,7 @@ fileSystems."/mnt/stash" = { enable = true; mountPoint = "/mnt/stash"; - device = "//192.168.1.12/AV"; + device = "//192.168.0.45/AV"; fsType = "cifs"; options = [ "vers=3" @@ -42,7 +42,7 @@ fileSystems."/mnt/torrenting" = { enable = true; mountPoint = "/mnt/torrenting"; - device = "//192.168.1.12/torrenting"; + device = "//192.168.0.45/torrenting"; fsType = "cifs"; options = [ "vers=3" @@ -58,7 +58,7 @@ fileSystems."/mnt/movies" = { enable = true; mountPoint = "/mnt/movies"; - device = "//192.168.1.12/Movies"; + device = "//192.168.0.45/Movies"; fsType = "cifs"; options = [ "vers=3" @@ -74,7 +74,7 @@ fileSystems."/mnt/shows" = { enable = true; mountPoint = "/mnt/shows"; - device = "//192.168.1.12/Shows"; + device = "//192.168.0.45/Shows"; fsType = "cifs"; options = [ "vers=3" @@ -90,7 +90,7 @@ fileSystems."/mnt/music" = { enable = true; mountPoint = "/mnt/music"; - device = "//192.168.1.12/Music"; + device = "//192.168.0.45/Music"; fsType = "cifs"; options = [ "vers=3" diff --git a/nixosConfigurations/fighter/networking.nix b/nixosConfigurations/fighter/networking.nix index 9e0ef9db..d5a39f70 100644 --- a/nixosConfigurations/fighter/networking.nix +++ b/nixosConfigurations/fighter/networking.nix @@ -1,22 +1,22 @@ -{...}: { +{hostname, ...}: { services.tailscale.enable = false; systemd.network = { enable = true; networks."50-enp3s0" = { address = [ - "192.168.1.23/24" + "192.168.0.234/24" ]; dns = [ - "192.168.1.1" - "10.0.0.1" + "192.168.0.1" + "10.00.0.1" ]; - gateway = ["192.168.1.1"]; + gateway = ["192.168.0.1"]; routes = [ { - Gateway = "192.168.1.1"; + Gateway = "192.168.0.1"; GatewayOnLink = true; - Destination = "192.168.1.0/24"; - Source = "192.168.1.23"; + Destination = "192.168.0.0/24"; + Source = "192.168.0.234"; } ]; matchConfig.Name = "enp3s0*"; @@ -25,4 +25,9 @@ }; networking.useNetworkd = true; networking.useDHCP = false; + networking.hostName = hostname; + networking.hosts = { + "143.198.68.202" = ["artificer"]; + "172.245.108.219" = ["champion"]; + }; }