Allow specifying multiple services per category
This commit is contained in:
parent
b7198ddeac
commit
29f60a3da9
1 changed files with 4 additions and 2 deletions
|
@ -14,10 +14,12 @@ let
|
||||||
|
|
||||||
mkSystemdDependencyOption =
|
mkSystemdDependencyOption =
|
||||||
{ default, ... }: lib.mkOption {
|
{ default, ... }: lib.mkOption {
|
||||||
type = lib.types.attrsOf 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 this sync depends on.";
|
||||||
example = {
|
example = {
|
||||||
secrets = "sops-nix.service";
|
secrets = [
|
||||||
|
"sops-nix.service"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
inherit default;
|
inherit default;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue