diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 5add9d5..4dd588d 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -3,6 +3,18 @@ let cfg = config.programs.rclone; targetName = "rclone"; + mkSystemdDependencyOption = + { default, ... }: lib.mkOption { + type = lib.types.attrsOf (lib.types.listOf lib.types.str); + description = "The systemd services this sync depends on."; + example = { + secrets = [ + "sops-nix.service" + ]; + }; + inherit default; + }; + mkProvider = { secretLoader ? ({ ... }: ""), @@ -19,18 +31,6 @@ let ; }; - mkSystemdDependencyOption = - { default, ... }: lib.mkOption { - type = lib.types.attrsOf (lib.types.listOf lib.types.str); - description = "The systemd services this sync depends on."; - example = { - secrets = [ - "sops-nix.service" - ]; - }; - inherit default; - }; - mkWebdavOptions = { vendorName }: { username = lib.mkOption { type = lib.types.str;