mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
hydra: fix user creation
This commit is contained in:
parent
5250bc0f69
commit
08dd63a119
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue