Closed
Description
I used determinate's nix installer as presented in step 2. Install Nix.
Then used the simplified version without secrets management.
Running nix run .#build-switch
resulted in the following error:
setting up /run via /etc/synthetic.conf...
error: Determinate detected, aborting activation
Determinate uses its own daemon to manage the Nix installation that
conflicts with nix-darwin’s native Nix management.
To turn off nix-darwin’s management of the Nix installation, set:
nix.enable = false;
This will allow you to use nix-darwin with Determinate. Some nix-darwin
functionality that relies on managing the Nix installation, like the
`nix.*` options to adjust Nix settings or configure a Linux builder,
will be unavailable.
To fix this issue I set nix.enable= false;
. See ./hosts/darwin/default.nix
...
nix = {
enable = false;
package = pkgs.nix;
settings = {
trusted-users = [ "@admin" "${user}" ];
substituters = [ "https://nix-community.cachix.org" "https://cache.nixos.org" ];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
...
Now it is working. Am I doing something wrong?
System:
MacBook Pro
Chip Apple M4 Pro
macOS: macOS Sequoia Version 15.3.1 (24D70)
Metadata
Metadata
Assignees
Labels
No labels