Fix confusing descriptions

This commit is contained in:
Manuel Thalmann 2024-05-15 18:16:45 +02:00
parent bff6f47528
commit 596a005989

View file

@ -4,9 +4,15 @@ let
targetName = "rclone"; targetName = "rclone";
mkSystemdDependencyOption = mkSystemdDependencyOption =
{ default, ... }: lib.mkOption { { default, global ? false, ... }: lib.mkOption {
type = lib.types.attrsOf (lib.types.listOf lib.types.str); 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 = { example = {
secrets = [ secrets = [
"sops-nix.service" "sops-nix.service"
@ -110,6 +116,7 @@ in {
systemdDependencies = mkSystemdDependencyOption { systemdDependencies = mkSystemdDependencyOption {
default = {}; default = {};
global = true;
}; };
configs = (builtins.mapAttrs configs = (builtins.mapAttrs