add VPS compat to harbor

This commit is contained in:
Jonas Röger 2025-04-04 14:03:04 +02:00
parent 5ff7900520
commit fb8682b0b0
Signed by: jonas
GPG Key ID: 4000EB35E1AE0F07

View File

@ -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;
}