Merge pull request 'directory-context' (#3234) from directory-context into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3234
This commit is contained in:
Mic92
2025-04-08 12:09:36 +00:00
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";