vars/interface: make type of dependencies configurable

One vars get lifted to the global scope, dependencies need to be structured differently, eg. categorized by instances
This commit is contained in:
DavHau
2025-07-15 13:41:05 +07:00
parent 66a6758db4
commit b91158f454
3 changed files with 20 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ in
++ lib.optionals (_class == "nixos") [
./secret/password-store.nix
];
options.clan.core.vars = lib.mkOption {
description = ''
Generated Variables
@@ -36,7 +37,14 @@ in
- generate secrets like private keys automatically when they are needed
- output multiple values like private and public keys simultaneously
'';
type = submodule { imports = [ ./interface.nix ]; };
type = submodule {
imports = [
./interface.nix
{
settings.dependenciesType = lib.types.listOf lib.types.str;
}
];
};
};
config = {