inventory: don't loose string context of directory

This commit is contained in:
Jörg Thalheim
2025-04-08 12:18:09 +02:00
parent 6dc0f6b91d
commit f008da9472
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ in
nodes = flip mapAttrs serviceConfigs.machines (
machineName: attrs: {
imports = attrs.machineImports ++ [ self.nixosModules.clanCore ];
clan.core.settings.directory = toString config.inventory.directory;
clan.core.settings.directory = "${config.inventory.directory}";
clan.core.settings.machine.name = machineName;
}
);

View File

@@ -27,7 +27,7 @@ in
else if v == null then
throw "Please set either clan.self or clan.directory"
else
builtins.toString v
"${v}"
) lib.types.path;
default = builtins.toString self;
defaultText = "Root directory of the flake";