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 don't auto switch/link to current system #128

Open
nicehiro opened this issue Nov 27, 2024 · 0 comments
Open

darwin-rebuild don't auto switch/link to current system #128

nicehiro opened this issue Nov 27, 2024 · 0 comments

Comments

@nicehiro
Copy link

Hi, thanks for your great work!

I'm a newbe to use nix on macOS. After a system upgrade, the nix won't automatically switch current-system to the new one. I have to link and activate the build system by:

cd run/
sudo ln -s new-built/system/ current-system
cd current-system
sudo ./activate

After this, the command nix run .#build-switch won't update the system and only generate result. The log is attached here:

Running build-switch for aarch64-darwin
Starting build...
Switching to new generation...
building the system configuration...
setting up /run via /etc/synthetic.conf...
Password:
setting up Homebrew (/opt/homebrew)...
user defaults...
restarting Dock...
setting up user launchd services...
Homebrew bundle...
Using mas
...
Homebrew Bundle complete! 20 Brewfile dependencies now installed.
Setting up the Dock...
--- /dev/fd/63	2024-11-27 23:41:07
+++ /dev/fd/62	2024-11-27 23:41:07
@@ -1,5 +1,5 @@
...
setting up /Applications/Nix Apps...
setting up pam...
applying patches...
setting up /etc...
system defaults...
setting up launchd services...
reloading nix-daemon...
No process to signal.

I assume that the darwin-rebuild process is not finished. But I don't know how to fix it.

Please let me know if you need any information. Thanks for your help.

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