From 79904056afc7025d3d351bc44741de4a9f20e017 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 17 Aug 2020 20:05:22 +0100 Subject: [PATCH] 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. --- nixos/socrates/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/socrates/default.nix b/nixos/socrates/default.nix index f638b83d6..ec0bf3a73 100644 --- a/nixos/socrates/default.nix +++ b/nixos/socrates/default.nix @@ -112,6 +112,7 @@ in { socrates = { enable = true; tokenPath = "/etc/secrets/buildkite-agent-token"; + privateSshKeyPath = "/etc/ssh/buildkite_agent_id_rsa"; }; };