Update Hetzner-specific conf

This commit is contained in:
Vili Sinervä 2025-06-29 00:14:35 +03:00
parent c9731ca799
commit 9c4a0ea9b5
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 27 additions and 16 deletions

View file

@ -1,7 +1,9 @@
{ lib, modulesPath, ... }:
{
networking.networkmanager.enable = lib.mkForce false;
networking.useDHCP = false;
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
systemd.network.networks."30-wan" = {
matchConfig.Name = "enp1s0";
networkConfig.DHCP = "no";
address = [
@ -20,10 +22,7 @@
boot.loader = {
efi.canTouchEfiVariables = false;
systemd-boot.enable = false;
grub = {
enable = true;
devices = [ "/dev/sda" ];
};
grub.enable = true;
};
system.stateVersion = "25.05";

View file

@ -6,6 +6,8 @@
siit.default = {
global.pool6 = "2a01:4f9:c013:bd27:46::/96";
denylist4 = [ "157.180.86.116/32" ];
# Explicit address mappings
eamt = [
{

View file

@ -5,22 +5,32 @@
device = "/dev/sda";
type = "disk";
content = {
type = "table";
format = "msdos";
partitions = [
{
name = "nixos";
part-type = "primary";
bootable = true;
start = "1M";
end = "100%";
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
priority = 1;
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
};