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:
parent
4e0ddf3061
commit
d31dbefca7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user