1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

hydra: use post activation for authorized_keys

This commit is contained in:
Daiderd Jordan 2018-01-03 00:32:27 +01:00
parent de6232171a
commit 8b10783bda
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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