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:
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user