From f83ff3aaffa72aee9cbb779f7d1939db9b033c7a Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 5 Oct 2023 22:05:09 +0200 Subject: [PATCH] sarek: Manually configure networking --- hosts/sarek/configuration.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/hosts/sarek/configuration.nix b/hosts/sarek/configuration.nix index 21a6ce7..4e08a4d 100644 --- a/hosts/sarek/configuration.nix +++ b/hosts/sarek/configuration.nix @@ -15,9 +15,22 @@ options = [ "defaults" "noauto" "x-systemd.automount" ]; }; - # Boot, console and networking is handled by proxmoxLXC. + # Boot and console is handled by proxmoxLXC. boot.loader.systemd-boot.enable = lib.mkForce false; # Enabled in base.nix, forced off here. - networking.domain = lib.mkForce null; + + # Override proxmox networking + proxmoxLXC.manageNetwork = true; + networking = { + hostName = "sarek"; + defaultGateway = "192.168.10.1"; + nameservers = [ "192.168.10.3" "192.168.11.100" "1.1.1.1" ]; + interfaces."eth0".ipv4 = { + addresses = [ + { address = "192.168.10.181"; prefixLength = 24; } + ]; + }; + hostId = "15dd36bc"; + }; sops.defaultSopsFile = ../../secrets/sarek/edison.yaml;