Skip to content

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

Open
@nicehiro

Description

@nicehiro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions