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/repo-sync.nix | |
parent | 087fff54f11d28c9a08849c70520ecf9030f4ce9 (diff) |
types.secret-file: add service option
Diffstat (limited to 'krebs/3modules/repo-sync.nix')
-rw-r--r-- | krebs/3modules/repo-sync.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/krebs/3modules/repo-sync.nix b/krebs/3modules/repo-sync.nix index 45d9d81c3..892f34049 100644 --- a/krebs/3modules/repo-sync.nix +++ b/krebs/3modules/repo-sync.nix @@ -166,7 +166,13 @@ let }); in nameValuePair "repo-sync-${name}" { description = "repo-sync"; - after = [ "network.target" "secret.service" ]; + after = [ + config.krebs.secret.files.repo-sync-key.service + "network.target" + ]; + requires = [ + config.krebs.secret.files.repo-sync-key.service + ]; environment = { GIT_SSH_COMMAND = "${pkgs.openssh}/bin/ssh -i ${cfg.stateDir}/ssh.priv"; |