From 596a00598921466935013f8a4921c21ef466d99e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 15 May 2024 18:16:45 +0200 Subject: [PATCH] Fix confusing descriptions --- lib/modules/rclone.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 447ec14..2255fb1 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -4,9 +4,15 @@ let targetName = "rclone"; mkSystemdDependencyOption = - { default, ... }: lib.mkOption { + { default, global ? false, ... }: lib.mkOption { type = lib.types.attrsOf (lib.types.listOf lib.types.str); - description = "The systemd services this sync depends on."; + description = "The systemd services ${ + if global then "all" else "this" + } sync${ + if global then "s" else "" + } depend${ + if global then "" else "s" + } on."; example = { secrets = [ "sops-nix.service" @@ -110,6 +116,7 @@ in { systemdDependencies = mkSystemdDependencyOption { default = {}; + global = true; }; configs = (builtins.mapAttrs