From 08dd63a119b06a9a9aae48bae652c808ab2f5369 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sat, 13 Jan 2018 23:16:39 +0100 Subject: [PATCH] hydra: fix user creation --- modules/examples/hydra.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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