Comments (3)
There is a way to override which user ID the installer starts at, the --nix-build-user-id-base
flag or NIX_INSTALLER_NIX_BUILD_USER_ID_BASE
environment:
Lines 129 to 143 in 15802f0
This is documented in nix-installer install --help
:
--nix-build-user-id-base <NIX_BUILD_USER_ID_BASE>
The Nix build user base UID (ascending)
[env: NIX_INSTALLER_NIX_BUILD_USER_ID_BASE=]
[default: 30000]
In your case, you could set NIX_INSTALLER_NIX_BUILD_USER_ID_BASE=302
.
I am a bit confused why we did not detect this in the planning phase, do you happen to know what the username of UID 301 is?
dscl . -list /Users UniqueID | grep 301
I believe we can make the planner code a bit more robust to avoid this in the future, it should probably check by ID as well:
nix-installer/src/action/base/create_user.rs
Lines 52 to 75 in 15802f0
from nix-installer.
I hit this same issue. Running export NIX_INSTALLER_NIX_BUILD_USER_ID_BASE=302
before the install fixed the problem.
I am a bit confused why we did not detect this in the planning phase, do you happen to know what the username of UID 301 is?
UID 301 on my machine was taken by user _defendpoint
, which seems to have been created by an install of BeyondTrust Endpoint Privilege Management. I do have BeyondTrust software installed on this machine, but I can't find much about that user online. This is the only thing I could find saying that their software manages that user in their MacOS installs: https://www.beyondtrust.com/docs/release-notes/privilege-management/windows-and-mac/mac/pm-mac-22-9.htm
from nix-installer.
I hit the same issue because I had some packages installed by MacPorts which used some UIDs in the default range.
The installer options weren't clear immediately because you have to specify the subcommand before issuing --help
to see the right ones.
Hopefully the installer can check this in the future prior to performing any actions.
from nix-installer.
Related Issues (20)
- <autogenerated-issue> HOT 3
- Issue with installing nix after reverting from a time machine backup.
- Error uninstalling after upgrading to macOS 15 beta HOT 5
- <autogenerated-issue> HOT 1
- Failed to install, cannot find org.nixos.darwin-store HOT 2
- (Re)Installation failure on MacOS Sonoma 14.6.1 HOT 7
- Could not kickstart service "org.nixos.nix-daemon": 1: Operation not permitted HOT 2
- Failed to install, black screen on Fedora Kinoite HOT 3
- Mac OS upgrade from 14.5 to 14.6.1 break everything HOT 15
- error: unable to load seccomp BPF program: Invalid argument HOT 2
- Bootstrap failed: 5: Input/output error HOT 3
- Failed to install nix on Mac HOT 1
- <autogenerated-issue> Installation failed on Mac OSX Sequoia 15.0 Beta (24A5327a) HOT 2
- Switch to UID 351+ and GID 350 on macOS HOT 8
- Unexpected argument and outdated version HOT 1
- <autogenerated-issue>
- Nix / installer env vars on nushell HOT 3
- <autogenerated-issue> HOT 4
- Consider adding an option to install nixsa, a sandboxed nix
- Could not find service "org.nixos.darwin-store" in domain for system HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-installer.