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

This commit is contained in:
2026-08-28 17:05:41 +00:00
parent 1422f3ce5c
commit 9b9cdb1795
2 changed files with 46 additions and 0 deletions
+23
View File
@@ -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";
};
};
}