From 9b9cdb17950e7066971b74be2a85294dab7a934b Mon Sep 17 00:00:00 2001 From: poslop Date: Fri, 28 Aug 2026 17:05:41 +0000 Subject: [PATCH] hosts: static IPs for goyplex-vm (10.0.1.47) and hermes-vm (10.0.1.140) via NM ensureProfiles in per-host custom.nix --- hosts/goyplex-vm/custom.nix | 23 +++++++++++++++++++++++ hosts/hermes-vm/custom.nix | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 hosts/goyplex-vm/custom.nix create mode 100644 hosts/hermes-vm/custom.nix diff --git a/hosts/goyplex-vm/custom.nix b/hosts/goyplex-vm/custom.nix new file mode 100644 index 0000000..3f5bb75 --- /dev/null +++ b/hosts/goyplex-vm/custom.nix @@ -0,0 +1,23 @@ +# per-host overrides: static IP for the k3s edge node +# LAN: 10.0.1.0/24, gw 10.0.1.1, DNS pas 10.0.1.45 + 1.1.1.1 +{ ... }: + +{ + networking.networkmanager.ensureProfiles.environmentFiles = [ ]; + networking.networkmanager.ensureProfiles.profiles = { + "ens18-static" = { + connection = { + id = "ens18-static"; + type = "ethernet"; + interface-name = "ens18"; + }; + ipv4 = { + method = "manual"; + addresses = "10.0.1.47/24"; + gateway = "10.0.1.1"; + dns = "10.0.1.45;1.1.1.1;"; + }; + ipv6.method = "disabled"; + }; + }; +} diff --git a/hosts/hermes-vm/custom.nix b/hosts/hermes-vm/custom.nix new file mode 100644 index 0000000..51ef027 --- /dev/null +++ b/hosts/hermes-vm/custom.nix @@ -0,0 +1,23 @@ +# per-host overrides: static IP for the hermes agent host +# LAN: 10.0.1.0/24, gw 10.0.1.1, DNS pas 10.0.1.45 + 1.1.1.1 +{ ... }: + +{ + networking.networkmanager.ensureProfiles.environmentFiles = [ ]; + networking.networkmanager.ensureProfiles.profiles = { + "ens18-static" = { + connection = { + id = "ens18-static"; + type = "ethernet"; + interface-name = "ens18"; + }; + ipv4 = { + method = "manual"; + addresses = "10.0.1.140/24"; + gateway = "10.0.1.1"; + dns = "10.0.1.45;1.1.1.1;"; + }; + ipv6.method = "disabled"; + }; + }; +}