refactor: cleanup and extract user config

This commit is contained in:
2026-04-23 20:03:51 +02:00
parent 2e02ebb1e2
commit 8a14ad2ed5
7 changed files with 104 additions and 80 deletions
+17
View File
@@ -361,6 +361,23 @@ in
readOnly = true;
};
options.meta.lib.accounts = lib.mkOption {
type = lib.types.attrs;
default = { };
apply = lib.mapAttrs (
name: account:
let
accountName = account.name or name;
in
account
// {
name = accountName;
}
);
description = "Canonical account attrsets shared by host definitions.";
internal = true;
};
config.meta.lib = {
inherit
mkInputProfiles