@cryptotaxi247 / infra / commits / 66175b50

Remove the buildfarm user

Instead use a forced command for build-remote.pl.

Eelco Dolstra committed Jul 25, 2014 at 15:02 UTC 66175b50420e560e8f4ce9fb9a351eec7aa4603e
1 file changed +2 -5
delft/build-machines-common.nix
+2 -5
@@ -31,11 +31,8 @@ in
31 "0,30 * * * * ${m3chown}"
32 ];
33
34 - # !!! Should have a NixOS option for installing files into a declarative user account.
35 - system.activationScripts.buildfarmSSHKey = stringAfter [ "users" ]
34 + users.extraUsers.root.openssh.authorizedKeys.keys = singleton
35 ''
37 - mkdir -m 700 -p /home/buildfarm/.ssh
38 - cp ${./id_buildfarm.pub} /home/buildfarm/.ssh/authorized_keys
39 - chown -R buildfarm.users /home/buildfarm/.ssh
36 + command="nix-store --serve --write" ${readFile ./id_buildfarm.pub}
37 '';
38 }