services: prepare for migration

This commit is contained in:
Nikodem Rabuliński 2025-03-23 22:02:20 +01:00
parent f9e4e25d35
commit 0d987e28f1
Signed by: nrabulinski
SSH key fingerprint: SHA256:AZZVyfKStaCo8sbJB+3Rr/CRrlym1oEgw7vMnynJeR8
4 changed files with 10 additions and 10 deletions

View file

@ -21,11 +21,11 @@ let
type = with lib.types; listOf str;
default = [ config.host ];
};
config = lib.mkOption {
module = lib.mkOption {
type = lib.types.deferredModule;
default = { };
};
hostConfig = lib.mkOption {
hostModule = lib.mkOption {
type = with lib.types; attrsOf deferredModule;
default = { };
};
@ -36,8 +36,8 @@ let
cfg:
lib.genAttrs cfg.hosts (host: {
imports = [
cfg.config
(cfg.hostConfig.${host} or { })
cfg.module
(cfg.hostModule.${host} or { })
];
});