try to make debugging a bit easier

This commit is contained in:
chaos 2023-09-20 16:18:44 +01:00
parent c0da687901
commit 41ff877d54
No known key found for this signature in database
3 changed files with 14 additions and 6 deletions

View file

@ -36,7 +36,7 @@ in {
networking.nat = { networking.nat = {
enable = true; enable = true;
internalInterfaces = ["ve-+"]; internalInterfaces = ["ve-+"];
externalInterface = "eth0"; externalInterface = "enp1s0";
}; };
networking.hostName = "hetzner-vm"; networking.hostName = "hetzner-vm";

View file

@ -29,8 +29,6 @@ in {
"sd_mod" "sd_mod"
"sr_mod" "sr_mod"
"usbhid" "usbhid"
"virtio_pci"
"virtio_net"
"dm_crypt" "dm_crypt"
"dm_mod" "dm_mod"
"cryptd" "cryptd"

View file

@ -32,17 +32,27 @@ in {
dhcpcd.enable = false; dhcpcd.enable = false;
}; };
boot.initrd.kernelModules = [
"virtio_gpu"
"virtio_pci"
"virtio_net"
"virtio_scsi"
];
boot.kernelParams = boot.kernelParams =
[ [
"console=tty0" "console=tty0"
"ip=${serverIPs.ipv4}::${gateway}:${netmask}:${hostName}:eth0:any" "ip=${serverIPs.ipv4}::${gateway}:${netmask}:${hostName}:enp1s0:any"
"boot.shell_on_fail"
"nohibernate"
"loglevel=4"
] ]
++ (lib.optionals (system == "aarch64-linux") ["console=ttyAMA0,115200" "console=ttyS0,115200"]); ++ (lib.optionals (system == "aarch64-linux") ["console=ttyAMA0,115200" "console=ttyS0,115200"]);
systemd.network = { systemd.network = {
enable = true; enable = true;
networks."eth0" = { networks."enp1s0" = {
name = "eth0"; name = "enp1s0";
networkConfig.DHCP = "no"; networkConfig.DHCP = "no";
address = [ address = [
# v4 # v4