Move buildkite's SSH key out of /home/wpcarro into /etc/ssh

After enabling buildkite-agent using NixOS, it runs as its own user,
buildkite-agent-socrates, which does not have its own home directory. I moved
the SSH key that I made when running buildkite-agent as wpcarro into /etc/ssh
and `chown`'d it for buildkite-agent-socrates.
This commit is contained in:
William Carroll 2020-08-17 20:05:22 +01:00
parent 60b8b83376
commit 79904056af

View file

@ -112,6 +112,7 @@ in {
socrates = { socrates = {
enable = true; enable = true;
tokenPath = "/etc/secrets/buildkite-agent-token"; tokenPath = "/etc/secrets/buildkite-agent-token";
privateSshKeyPath = "/etc/ssh/buildkite_agent_id_rsa";
}; };
}; };