Closed hitsmaxft closed 11 months ago
This means you've installed the x86_64
Nix, the easiest fix is probably to uninstall Nix:
https://github.com/DeterminateSystems/nix-installer#uninstalling
Otherwise, if /nix/nix-installer
doesn't exist:
https://nixos.org/manual/nix/unstable/installation/uninstall.html#macos
Then reinstall it with:
https://github.com/DeterminateSystems/nix-installer#usage
I would download the aarch64-darwin
binary manually instead of running the command to ensure the correct Nix gets installed
This means you've installed the
x86_64
Nix, the easiest fix is probably to uninstall Nix:https://github.com/DeterminateSystems/nix-installer#uninstalling
Otherwise, if
/nix/nix-installer
doesn't exist:https://nixos.org/manual/nix/unstable/installation/uninstall.html#macos
Then reinstall it with:
https://github.com/DeterminateSystems/nix-installer#usage
I would download the
aarch64-darwin
binary manually instead of running the command to ensure the correct Nix gets installed
thank you , i found that while previous installing, install script run uname -m , but it outputs x86 and download the wrong installer leads to this problem.
@Enzime need help for home manager switch
it complain about system args
[nix-shell:~/.config/home-manager]$ home-manager switch
error:
… while evaluating the attribute 'activationPackage'
at /nix/store/kyxjq9677b5l77a46lixkwv43jrzr9w2-home-manager-source/modules/default.nix:54:3:
53|
54| activationPackage = module.config.home.activationPackage;
| ^
55|
… while evaluating a branch condition
at /nix/store/3bi1ssj310l4jj3i6abqgiafyc7fx0nd-nixpkgs/nixpkgs/lib/lists.nix:57:9:
56| fold' = n:
57| if n == len
| ^
58| then nul
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'currentSystem' missing
at /nix/store/3bi1ssj310l4jj3i6abqgiafyc7fx0nd-nixpkgs/nixpkgs/lib/modules.nix:508:28:
507| builtins.addErrorContext (context name)
508| (args.${name} or config._module.args.${name})
| ^
509| ) (lib.functionArgs f);
I suggest using home-manager
as a nix-darwin
module, that way when you do a darwin-rebuild switch
it'll also apply your home-manager config
https://nix-community.github.io/home-manager/index.xhtml#sec-flakes-nix-darwin-module
I suggest using
home-manager
as anix-darwin
module, that way when you do adarwin-rebuild switch
it'll also apply your home-manager confighttps://nix-community.github.io/home-manager/index.xhtml#sec-flakes-nix-darwin-module
I've rollbacked to classic nix-darwin installation for saving time. thank you for your advice, i wll try it on other macbooks.
run switch commmand on my flake.nix
it's show error logs and exits
here is my configuration
is there any mistakes in host configuration