diff options
author | tv <tv@krebsco.de> | 2020-08-04 20:28:04 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-08-05 11:01:30 +0200 |
commit | b5b90b598430cfa876639d76dbbdc8d826ccb5c0 (patch) | |
tree | a302c834b859111bd2061e2c52d9e91c052d2a98 /krebs/3modules/tinc.nix | |
parent | 087fff54f11d28c9a08849c70520ecf9030f4ce9 (diff) |
types.secret-file: add service option
Diffstat (limited to 'krebs/3modules/tinc.nix')
-rw-r--r-- | krebs/3modules/tinc.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix index 8b6e959d4..0be16d8f6 100644 --- a/krebs/3modules/tinc.nix +++ b/krebs/3modules/tinc.nix @@ -219,9 +219,14 @@ let iproute = cfg.iproutePackage; in { description = "Tinc daemon for ${netname}"; - after = [ "network.target" ]; + after = [ + config.krebs.secret.files."${netname}.rsa_key.priv".service + "network.target" + ]; + requires = [ + config.krebs.secret.files."${netname}.rsa_key.priv".service + ]; wantedBy = [ "multi-user.target" ]; - requires = [ "secret.service" ]; path = [ tinc iproute ]; serviceConfig = rec { Restart = "always"; |