sarek: Manually configure networking

This commit is contained in:
Felix Albrigtsen 2023-10-05 22:05:09 +02:00 committed by Felix Albrigtsen
parent e68d58c5dd
commit fde9b9daa3
1 changed files with 15 additions and 2 deletions

View File

@ -15,9 +15,22 @@
options = [ "defaults" "noauto" "x-systemd.automount" ]; 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. 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; sops.defaultSopsFile = ../../secrets/sarek/edison.yaml;