diff --git a/pkgs/darwin-installer/configuration.nix b/pkgs/darwin-installer/configuration.nix index 9e269a66..ac63dbf4 100644 --- a/pkgs/darwin-installer/configuration.nix +++ b/pkgs/darwin-installer/configuration.nix @@ -5,6 +5,11 @@ with lib; { imports = [ ]; + # 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 '' 2> /dev/null) || true if ! test -e "$darwinPath"; then