Skip to content

Commit 3319682

Browse files
committed
hcloud: these settings apparently fixes the changing hostname issue
The hostname would change to "nixos" whenever updating the configuration, with these settings that doesn't seem to happen. So now each machine can use a generic profile rather than a specially named one.
1 parent a4aeda4 commit 3319682

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

profiles/hardware/hcloud.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
services.cloud-init.enable = true;
2929
services.cloud-init.network.enable = true;
3030
networking.dhcpcd.enable = false; ## we're using cloud-init
31-
networking.hostName = hostName;
31+
networking.hostName = "";
32+
networking.useNetworkd = true;
33+
systemd.network.enable = true;
3234

3335
nix = {
3436
settings.trusted-users = ["root"];

0 commit comments

Comments
 (0)