diff --git a/machines/hardware/_base.nix b/machines/hardware/_base.nix index e9b831f..d984d8c 100644 --- a/machines/hardware/_base.nix +++ b/machines/hardware/_base.nix @@ -18,6 +18,10 @@ in { assertion = lists.any has_ip interfaces; message = "Must have a ip address set"; } + { + assertion = config.networking.hostName != "nixos"; + message = "Must have networking.hostName set"; + } ]; }; } diff --git a/machines/vendetta.nix b/machines/vendetta.nix index f54fab9..db68a37 100644 --- a/machines/vendetta.nix +++ b/machines/vendetta.nix @@ -23,6 +23,8 @@ in { ./hardware/RM002.nix ]; + networking.hostName = name; + deployment = { targetHost = ip_pub; targetPort = 22;