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 | ec91d1b83cfad151033433159a04eb7b5381bc73 (patch) | |
tree | 4da4eefa1d14a8cd5cca42e9d78a81262ff1fe03 /krebs/3modules/exim-smarthost.nix | |
parent | 4227cadb6823bd4b945b8ea9e766f22b95d26468 (diff) |
krebs.secret: restart units on secret change
Diffstat (limited to 'krebs/3modules/exim-smarthost.nix')
-rw-r--r-- | krebs/3modules/exim-smarthost.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/3modules/exim-smarthost.nix b/krebs/3modules/exim-smarthost.nix index 2a97f9d6e..c5969caac 100644 --- a/krebs/3modules/exim-smarthost.nix +++ b/krebs/3modules/exim-smarthost.nix @@ -26,6 +26,7 @@ let private_key = mkOption { type = types.secret-file; default = { + name = "exim.dkim_private_key/${config.domain}"; path = "/run/krebs.secret/${config.domain}.dkim_private_key"; owner.name = "exim"; source-path = toString <secrets> + "/${config.domain}.dkim.priv"; @@ -118,7 +119,7 @@ let after = flip map cfg.dkim (dkim: config.krebs.secret.files."exim.dkim_private_key/${dkim.domain}".service ); - requires = flip map cfg.dkim (dkim: + partOf = flip map cfg.dkim (dkim: config.krebs.secret.files."exim.dkim_private_key/${dkim.domain}".service ); }; |