1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-11-13 04:56:53 +03:00

installer: configure build users

This commit is contained in:
Daiderd Jordan 2018-01-14 17:18:10 +01:00
parent 4e0ddf3061
commit d31dbefca7
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -5,6 +5,11 @@ with lib;
{
imports = [ <user-darwin-config> ];
# NOTE: don't set this outside of the instaler.
users.nix.configureBuildUsers = true;
users.knownGroups = [ "nixbld" ];
users.knownUsers = [ "nixbld1" "nixbld2" "nixbld3" "nixbld4" "nixbld5" "nixbld6" "nixbld7" "nixbld8" "nixbld9" "nixbld10" ];
system.activationScripts.preUserActivation.text = mkBefore ''
darwinPath=$(NIX_PATH=${concatStringsSep ":" config.nix.nixPath} nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
if ! test -e "$darwinPath"; then