Simplify option evaluation
This commit is contained in:
parent
097a871b75
commit
5d88c33a3a
1 changed files with 8 additions and 11 deletions
|
@ -52,7 +52,7 @@ let
|
||||||
providerOptions = lib.mkOption {
|
providerOptions = lib.mkOption {
|
||||||
description = "The options of the sync";
|
description = "The options of the sync";
|
||||||
type = lib.types.submodule { inherit (provider config) options; };
|
type = lib.types.submodule { inherit (provider config) options; };
|
||||||
default = {};
|
default = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
systemdDependencies = mkSystemdDependencyOption {
|
systemdDependencies = mkSystemdDependencyOption {
|
||||||
|
@ -78,16 +78,13 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = {
|
||||||
let
|
inherit (provider (lib.debug.traceVal config))
|
||||||
syncProvider = syncProviders.${config.type} config;
|
environment
|
||||||
in {
|
secretsScript
|
||||||
inherit (syncProvider)
|
config
|
||||||
environment
|
;
|
||||||
secretsScript
|
};
|
||||||
config
|
|
||||||
;
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
|
Loading…
Reference in a new issue