Fix confusing descriptions
This commit is contained in:
parent
bff6f47528
commit
596a005989
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue