hetner stuf

This commit is contained in:
Johannes Jöns 2024-01-18 23:15:33 +01:00
parent b1c373ddbe
commit 953bd17245

View file

@ -28,16 +28,16 @@
enable = true; enable = true;
networks."eth0" = { networks."eth0" = {
extraConfig = '' extraConfig = ''
[Match] [Match]
Name = eth0 Name = eth0
[Network] [Network]
# Add your own assigned ipv6 subnet here here! # Add your own assigned ipv6 subnet here here!
Address = 2a01:4f8:a0:31e5::/64 Address = 2a01:4f8:a0:31e5::/64
Gateway = fe80::1 Gateway = fe80::1
# optionally you can do the same for ipv4 and disable DHCP (networking.dhcpcd.enable = false;) # optionally you can do the same for ipv4 and disable DHCP (networking.dhcpcd.enable = false;)
Address = 85.10.200.204 Address = 85.10.200.204
Gateway = 85.10.200.193 Gateway = 85.10.200.193
''; '';
}; };
}; };
@ -56,23 +56,21 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
BOOT = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = { ESP = {
size = "500M";
type = "EF00"; type = "EF00";
size = "500M";
content = { content = {
type = "mdraid"; type = "filesystem";
name = "boot"; format = "vfat";
mountpoint = "/boot";
}; };
}; };
mdadm = { root = {
size = "100%"; size = "100%";
content = { content = {
type = "mdraid"; type = "filesystem";
name = "raid1"; format = "ext4";
mountpoint = "/";
}; };
}; };
}; };
@ -84,55 +82,17 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
boot = { extra = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "500M";
type = "EF00";
content = {
type = "mdraid";
name = "boot";
};
};
mdadm = {
size = "100%"; size = "100%";
content = { content = {
type = "mdraid"; type = "filesystem";
name = "raid1"; format = "ext4";
mountpoint = "/media/extra";
}; };
}; };
}; };
}; };
}; };
}; };
mdadm = {
boot = {
type = "mdadm";
level = 1;
metadata = "1.0";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
raid1 = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions.primary = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
}; };
} }