Git Product home page Git Product logo

Comments (5)

LnL7 avatar LnL7 commented on August 17, 2024

Did you enable the nix-daemon? I assume this is because it's set to daemon

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

You can look at /run/current-system/activate and run it inside nix-shell -p stdenv to reactivate your current system. Note that that you have to start a new terminal (and restart tmux/screen) for changes like environment variables to propagate to your shell.

from nix-darwin.

bkase avatar bkase commented on August 17, 2024

Re the daemon:
Ahh, I did enable it out of curiosity from looking at your example config. It didn't seem to work though (do I need to manually create a nixbld group?), so I did remove it from my config. I guess not having the nix-daemon enabled doesn't unset the NIX_REMOTE variable?

The bug with /etc/static not updating:
ln -sfn /nix/store/m0rm1ljwsrjjjfivmcb6y6nwlva59ix0-etc/etc /etc/static was creating an etc directory inside of the /etc/static instead of mapping the contents of /nix/store...etc inside the /etc/static directory.
I don't know how I got into that state. Manually rm -rf /etc/static and rerunning of activate fixed it. Future darwin-rebuild switches now work.

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

Ah interesting, I put in a safeguard to prevent issues but apparently the environment variable was still set somehow.
See #9 (comment) if you want to use it, but once you enable it the store will be owned by root so you can't just revert without fixing changing the permissions first. The daemon enables multi user support and has the added benefit that your user can't write directly to the store anymore.

from nix-darwin.

LnL7 avatar LnL7 commented on August 17, 2024

Not sure about the etc issue, but the activation should now correctly fail before setting the environment variable or starting the daemon.

from nix-darwin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.