diff --git a/hosts/harbor/configuration.nix b/hosts/harbor/configuration.nix index 3aabc5d..1af60d9 100644 --- a/hosts/harbor/configuration.nix +++ b/hosts/harbor/configuration.nix @@ -63,7 +63,25 @@ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.11"; # Did you read the comment? + # VPS compat + boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/sda"; + boot.loader.grub.version = 2; + boot.kernelParams = ["net.ifnames=0"]; # ensure iface is called eth0 + networking.networkmanager.enable = true; + networking = { + # Static network configuration + hostName = "harbor"; + domain = "jroeger.de"; + defaultGateway = "173.249.42.1"; + nameservers = ["8.8.8.8"]; + interfaces.eth0.ipv4.addresses = [ + { + address = "173.249.42.252"; + prefixLength = 24; + } + ]; + }; # Set your time zone. time.timeZone = "Europe/Berlin"; @@ -82,10 +100,4 @@ LC_TIME = "de_DE.UTF-8"; }; console.keyMap = "de"; - - networking.hostName = "harbor"; - networking.domain = "jroeger.de"; - - # Enable networking - networking.networkmanager.enable = true; }