fix: Repair when overrides for device types gets merged
This commit is contained in:
committed by
Hunter Halloran
parent
7ac453e1f7
commit
f658a4a5cc
@@ -170,10 +170,11 @@ let
|
|||||||
lib.mapAttrsToList (
|
lib.mapAttrsToList (
|
||||||
deviceKey: deviceConfig:
|
deviceKey: deviceConfig:
|
||||||
let
|
let
|
||||||
usePrefix = deviceConfig.ugaif.host.useHostPrefix or true;
|
|
||||||
hostName = mkHostName prefix deviceKey usePrefix;
|
|
||||||
# Merge: base config -> overrides -> device-specific config
|
# Merge: base config -> overrides -> device-specific config
|
||||||
mergedConfig = lib.recursiveUpdate (lib.recursiveUpdate baseConfig overrides) deviceConfig;
|
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
|
in
|
||||||
{
|
{
|
||||||
name = hostName;
|
name = hostName;
|
||||||
|
|||||||
@@ -86,9 +86,11 @@
|
|||||||
# Creates: nix-builder (without lxc prefix)
|
# Creates: nix-builder (without lxc prefix)
|
||||||
nix-lxc = {
|
nix-lxc = {
|
||||||
devices = {
|
devices = {
|
||||||
"nix-builder" = {
|
"nix-builder" = { };
|
||||||
ugaif.host.useHostPrefix = false;
|
"usda-dash" = { };
|
||||||
};
|
};
|
||||||
|
overrides = {
|
||||||
|
ugaif.host.useHostPrefix = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user