diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 7a6e4da..80be42d 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -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,16 +78,13 @@ let }; }; - config = - let - syncProvider = syncProviders.${config.type} config; - in { - inherit (syncProvider) - environment - secretsScript - config - ; - }; + config = { + inherit (provider (lib.debug.traceVal config)) + environment + secretsScript + config + ; + }; }); in { options = {