change hostname

This commit is contained in:
chaos 2023-09-20 16:59:45 +01:00
parent 1d17a5221e
commit e06f108f1b
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,7 @@
restic restic
]); ]);
networking.hostName = "vault"; networking.hostName = "vault-arm";
home-manager.users.root.home.stateVersion = "23.05"; home-manager.users.root.home.stateVersion = "23.05";
system.stateVersion = "23.05"; system.stateVersion = "23.05";

View file

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