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:
parent
de6232171a
commit
8b10783bda
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue