-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system/checks: allow disabling the buildUsers check #681
Conversation
a08775f
to
3f25f86
Compare
Now that I think about it, it might be better to just allow disabling this check altogether rather than doing heuristics that may not hold. |
This allows systems with auto-allocate-uids enabled to work (by disabling this check).
@domenkozar can we prioritize merging this, please? ☝️ On newer installs via DeterminateSystems/nix-installer nix-darwin fails miserably |
I think the default has to be don't do the check. The reason is how do you turn the check off - that is not in the documentation. I ended up commenting out the check line. as even with this patch it still fails. |
You turn the check off by setting |
The install I was doing was install nix and then nix-darwin and only then look at config. |
You'll want to follow the instructions for installing nix-darwin from here: https://github.com/LnL7/nix-darwin#flakes-experimental Specifically, you create your nix-darwin config, then you build it on your darwin machine, and then you use the |
see LnL7/nix-darwin#681 for more information
This makes it possible for people who are using the
auto-allocate-uids
experimental feature (available since 2.12.0) to install nix-darwin! Otherwise, this check will fail because, predictably, there are no build users as they're allocated at build-time.