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

darwin-rebuild switch --flake ~/.config/nix is trying to create a system link in the store #1033

Open
tarynnya opened this issue Aug 7, 2024 · 0 comments

Comments

@tarynnya
Copy link

tarynnya commented Aug 7, 2024

I've been trying to rebuild for the past 2 days, but I keep getting this error.

> darwin-rebuild switch --flake ~/.config/nix
building the system configuration...
error: creating a garbage collector root (/nix/store/sw2drbnr56jq8rmcisqmqxq258dq62rx-system-1-link) in the Nix store is forbidden (are you running nix-build inside the store?)

I'm currently on "system-60", so it should be creating /nix/var/nix/profiles/system-61-link.

When I rebooted, /run/current-system/ had completely vanished. I've created a symlink with ln -snf "$(realpath /nix/var/nix/profiles/system)" /run/current-system to access system packages in the meantime.

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

1 participant