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