feat(homes/rafiq): port over configs

This commit is contained in:
Mohammad Rafiq 2025-07-07 21:19:08 +08:00
parent aa06b5f6fd
commit 4c82720251
No known key found for this signature in database
15 changed files with 440 additions and 2 deletions

View file

@ -6,7 +6,12 @@
}:
let
inherit (lib.options) mkOption;
inherit (lib.types) path lazyAttrsOf raw;
inherit (lib.types)
path
lazyAttrsOf
raw
deferredModule
;
inherit (inputs.flake-parts.lib) mkSubmoduleOptions;
inherit (cfg.lib.attrsets) firstAttrNameMatching;
cfg = config.flake;
@ -29,6 +34,10 @@ in
type = lazyAttrsOf raw;
default = { };
};
homes = mkOption {
type = lazyAttrsOf deferredModule;
default = { };
};
};
config.flake = {
paths.secrets = cfg.paths.root + "/secrets";