Skip to content
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

disable nix-daemon? #9

Closed
sellout opened this issue Jan 12, 2017 · 5 comments
Closed

disable nix-daemon? #9

sellout opened this issue Jan 12, 2017 · 5 comments

Comments

@sellout
Copy link
Contributor

sellout commented Jan 12, 2017

I “accidentally” enabled nix-daemon, and now (after disabling it) whenever I try darwin-rebuild build, it errors with “the group ‘nixbld’ specified in ‘build-users-group’ does not exist”

How can I get it to not try to start nix-daemon now?

@yurrriq
Copy link
Contributor

yurrriq commented Jan 12, 2017

FWIW I've written and used this script (modified from outdated NixOS docs) to set up the proper groups and users for nix-daemon.

@yurrriq
Copy link
Contributor

yurrriq commented Jan 12, 2017

N.B. The hard-coded gid=502 might need to be adjusted on your system.

@LnL7
Copy link
Owner

LnL7 commented Jan 15, 2017

If you remove /etc/nix/nix.conf and stop the daemon you can rebuild again.

@sellout
Copy link
Contributor Author

sellout commented Jan 15, 2017

@LnL7 I’ve removed /etc/nix/nix.conf, stopped the daemon, and I still get the same error whenever I try darwin-rebuild or nix-build '<darwin>' -A system --no-out-link (as part of $(nix-build '<darwin>' -A system --no-out-link)/sw/bin/darwin-rebuild build).

I suppose I may as well use @yurrriq’s script and run the daemon anyway – my only reservation is basically having to remember to run that script whenever my nix config moves to a new machine.

@LnL7
Copy link
Owner

LnL7 commented Jan 15, 2017

I wrote this when I first installed the daemon on my machine https://gist.github.com/LnL7/ed6a23cd803fdb371e853fe970a848a3, I'm planning to include this in the repo or provide a proper installer sometime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants