diff --git a/hosts/default.nix b/hosts/default.nix index 1766d35..352302d 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -170,10 +170,11 @@ let lib.mapAttrsToList ( deviceKey: deviceConfig: let - usePrefix = deviceConfig.ugaif.host.useHostPrefix or true; - hostName = mkHostName prefix deviceKey usePrefix; # Merge: base config -> overrides -> device-specific config mergedConfig = lib.recursiveUpdate (lib.recursiveUpdate baseConfig overrides) deviceConfig; + # Check useHostPrefix from the merged config + usePrefix = mergedConfig.ugaif.host.useHostPrefix or true; + hostName = mkHostName prefix deviceKey usePrefix; in { name = hostName; diff --git a/inventory.nix b/inventory.nix index 003c368..3054334 100644 --- a/inventory.nix +++ b/inventory.nix @@ -86,9 +86,11 @@ # Creates: nix-builder (without lxc prefix) nix-lxc = { devices = { - "nix-builder" = { - ugaif.host.useHostPrefix = false; - }; + "nix-builder" = { }; + "usda-dash" = { }; + }; + overrides = { + ugaif.host.useHostPrefix = false; }; };