diff options
author | tv <tv@krebsco.de> | 2020-08-04 22:22:43 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-08-05 11:16:45 +0200 |
commit | e08c388b692c86a398f82dd399c7af9acaf76c99 (patch) | |
tree | b4c010e63200190da8c232b0c6e07f84372c9016 /lib/types.nix | |
parent | d200bf09cba4b614390eadc7bb95fbded0ceefbc (diff) |
krebs.secret: restart units on secret change
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/types.nix b/lib/types.nix index 66b01fd..1eb4d94 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -238,7 +238,7 @@ rec { secret-file = submodule ({ config, ... }: { options = { name = mkOption { - type = filename; + type = pathname; default = config._module.args.name; }; path = mkOption { @@ -257,8 +257,8 @@ rec { default = "root"; }; service = mkOption { - type = filename; - default = "secret.service"; + type = systemd.unit-name; + default = "secret-${lib.systemd.encodeName config.name}.service"; }; source-path = mkOption { type = str; |