only set console on aarch64-linux

This commit is contained in:
chaos 2023-09-20 23:34:25 +01:00
parent b82f229a6b
commit 4206a3f07e
No known key found for this signature in database

View file

@ -42,13 +42,12 @@ in {
boot.kernelParams =
[
"console=tty0"
"ip=${hostServerIPs.ipv4}::${gateway}:${netmask}:${hostName}:enp1s0:any"
"boot.shell_on_fail"
"nohibernate"
"loglevel=4"
]
++ (lib.optionals (system == "aarch64-linux") ["console=tty" "console=ttyAMA0,115200" "console=ttyS0,115200"]);
++ (lib.optionals (system == "aarch64-linux") ["console=tty"]);
systemd.network = {
enable = true;