From 2b69485107f937e32cbd7abe8e8aeec8944d1460 Mon Sep 17 00:00:00 2001 From: Emma Thorpe Date: Tue, 16 Jun 2026 11:30:22 +0100 Subject: [PATCH] feat(edaas): set hostName to emmathorpe-edaas The host inherited the stock NixOS default hostname 'nixos', which does not match the flake's nixosConfigurations attribute 'emmathorpe-edaas'. nh selects the configuration by the local hostname, so bare 'nh os switch' failed to resolve. Pin the hostname to the attribute name so it resolves without an explicit -H/--hostname flag. --- system/machine/EDaaS/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/machine/EDaaS/configuration.nix b/system/machine/EDaaS/configuration.nix index 600d786..32ba7f9 100644 --- a/system/machine/EDaaS/configuration.nix +++ b/system/machine/EDaaS/configuration.nix @@ -43,6 +43,11 @@ autoPrune.enable = true; }; + # Match the flake's nixosConfigurations attribute name so `nh os switch` + # (which selects by the local hostname) resolves without an explicit + # -H/--hostname flag. The default would otherwise be the stock NixOS "nixos". + networking.hostName = "emmathorpe-edaas"; + networking.resolvconf.enable = false; # Drop the systemd-ssh-proxy Include from the generated /etc/ssh/ssh_config.