From 8b10783bda1e2169b456218424b3ca61171474ef Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 3 Jan 2018 00:32:27 +0100 Subject: [PATCH] hydra: use post activation for authorized_keys --- modules/examples/hydra.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/examples/hydra.nix b/modules/examples/hydra.nix index 8916bf18..e4efd7aa 100644 --- a/modules/examples/hydra.nix +++ b/modules/examples/hydra.nix @@ -74,7 +74,9 @@ in dscl . -create /Users/hydra PrimaryGroupID 122 >&2 || exit fi set -e + ''; + system.activationScripts.extraPostActivation.text = '' printf "configuring ssh keys for hydra... " mkdir -p ~hydra/.ssh cp -f /etc/per-user/hydra/ssh/authorized_keys ~hydra/.ssh/authorized_keys