diff --git a/modules/examples/hydra.nix b/modules/examples/hydra.nix index 1fde6ce7..7fca7c03 100644 --- a/modules/examples/hydra.nix +++ b/modules/examples/hydra.nix @@ -45,9 +45,12 @@ in users.knownGroups = [ "hydra" ]; users.knownUsers = [ "hydra" ]; users.groups.hydra = { gid = 530; description = "Hydra builder group"; }; - users.users.hydra = { uid = 530; gid = 530; description = "Hydra"; home = "/Users/hydra"; isHidden = true; }; + users.users.hydra = { uid = 530; gid = 530; description = "Hydra"; home = "/Users/hydra"; shell = "/bin/bash"; isHidden = true; }; 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