From 309872f4f23ebddeda3fb3a694d0c5f446c659d3 Mon Sep 17 00:00:00 2001 From: "Giulio De Pasquale (aider)" Date: Sat, 26 Apr 2025 17:06:29 +0100 Subject: [PATCH] refactor: migrate architect network config to pepe.core.network module structure --- hosts/architect/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hosts/architect/default.nix b/hosts/architect/default.nix index afbfdd0..de6f916 100644 --- a/hosts/architect/default.nix +++ b/hosts/architect/default.nix @@ -39,9 +39,10 @@ in age.identityPaths = [ "/root/.ssh/id_ed25519" ]; - architect = { - networks.lan = { + pepe.core.network.interfaces = { + lan = { interface = "enp6s0"; + type = "lan"; net = "10.0.0.0/24"; devices = { architect = { address = "10.0.0.250"; hostname = "architect.${domain}"; }; @@ -51,6 +52,9 @@ in lgtv = { address = "10.0.0.202"; hostname = "lgtv.${domain}"; }; }; }; + }; + + architect = { firewall = { openTCP = [ 22 ]; @@ -73,7 +77,7 @@ in }; }; - kernelParams = with config.architect.networks.lan; [ + kernelParams = with config.pepe.core.network.interfaces.lan; [ "ip=${devices.architect.address}::${devices.brigettine.address}:255.255.255.0::${interface}:off" ]; @@ -92,7 +96,7 @@ in tmp.tmpfsSize = "50%"; }; - networking = with config.architect.networks.lan; { + networking = with config.pepe.core.network.interfaces.lan; { hostName = "architect"; hostId = "49350853"; useDHCP = false; @@ -103,7 +107,7 @@ in prefixLength = 24; }]; }; - extraHosts = (generateDeviceStrings config.architect.networks.lan.devices) + '' + extraHosts = (generateDeviceStrings config.pepe.core.network.interfaces.lan.devices) + '' # Blacklist 0.0.0.0 metrics.plex.tv