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

hydra: cleanup

This commit is contained in:
Daiderd Jordan 2018-01-23 19:42:49 +01:00
parent dc33fe3d89
commit dc575ed17d
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -45,12 +45,9 @@ in
users.knownGroups = [ "hydra" ];
users.knownUsers = [ "hydra" ];
users.groups.hydra = { gid = 530; description = "Hydra builder group"; members = [ "hydra" ]; };
users.users.hydra = { uid = 530; gid = 530; description = "Hydra"; home = "/Users/hydra"; shell = "/bin/bash"; isHidden = true; };
users.users.hydra = { uid = 530; gid = 530; description = "Hydra"; home = "/Users/hydra"; shell = "/bin/bash"; };
system.activationScripts.postActivation.text = ''
echo "configuring hydra group"
dscl . -create /Groups/hydra GroupMembership hydra
printf "configuring ssh keys for hydra... "
mkdir -p ~hydra/.ssh
cp -f /etc/per-user/hydra/ssh/authorized_keys ~hydra/.ssh/authorized_keys