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 = {
enable = true;
internalInterfaces = ["ve-+"];
externalInterface = "eth0";
externalInterface = "enp1s0";
};
networking.hostName = "hetzner-vm";

View file

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

View file

@ -32,17 +32,27 @@ in {
dhcpcd.enable = false;
};
boot.initrd.kernelModules = [
"virtio_gpu"
"virtio_pci"
"virtio_net"
"virtio_scsi"
];
boot.kernelParams =
[
"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"]);
systemd.network = {
enable = true;
networks."eth0" = {
name = "eth0";
networks."enp1s0" = {
name = "enp1s0";
networkConfig.DHCP = "no";
address = [
# v4