diff options
author | makefu <github@syntax-fehler.de> | 2020-08-11 12:12:13 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-08-11 12:12:13 +0200 |
commit | 4cb0ff12ba563693b6be7aac3c7cc8c6ce7a003c (patch) | |
tree | 2eceb32d72c1799938bce57240566ba576c2c3b4 /krebs/3modules/repo-sync.nix | |
parent | 93606315b99a2540c5859d93eb2377ae32fa6506 (diff) | |
parent | f556a302f62434e0a47ef23db7e569bdb9c489f6 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/3modules/repo-sync.nix')
-rw-r--r-- | krebs/3modules/repo-sync.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/krebs/3modules/repo-sync.nix b/krebs/3modules/repo-sync.nix index 45d9d81c3..91111f3eb 100644 --- a/krebs/3modules/repo-sync.nix +++ b/krebs/3modules/repo-sync.nix @@ -124,6 +124,7 @@ let privateKeyFile = mkOption { type = types.secret-file; default = { + name = "repo-sync-key"; path = "${cfg.stateDir}/ssh.priv"; owner = cfg.user; source-path = toString <secrets> + "/repo-sync.ssh.key"; @@ -166,7 +167,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" + ]; + partOf = [ + config.krebs.secret.files.repo-sync-key.service + ]; environment = { GIT_SSH_COMMAND = "${pkgs.openssh}/bin/ssh -i ${cfg.stateDir}/ssh.priv"; |