From ae21cbb3cada2e65e407fa55eb6f91c132fc8159 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 15 May 2024 10:01:13 +0200 Subject: [PATCH] Reorder declarations --- lib/modules/rclone.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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;