Comments (5)
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
from nix-darwin.
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.
from nix-darwin.
@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);
from nix-darwin.
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
from nix-darwin.
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.
from nix-darwin.
Related Issues (20)
- Add a uninstaller for flakes HOT 4
- darwin-rebuild needs restart for some settings HOT 3
- Nix-Darwin x HM doesn't install paths in for zsh `/run/current-system/sw/bin` HOT 13
- Putting the configuration in `~/.config/nixpkgs` instead `~/.nixpkgs` HOT 1
- `cachix-agent` service dies at launch HOT 3
- Always fail to pull nix-darwin from github? HOT 1
- Feature request: add com.apple.dock.persistent-others
- vscode-extensions not found on share directory HOT 1
- Is nix-darwin installing a second Nix? HOT 29
- Encountering an mdDoc related error when updating nix-darwin via flake HOT 13
- `pkg-config` not functioning as expected on fresh install and shells HOT 10
- Casks not updated automatically HOT 2
- [Question] /run symlink necessary? HOT 5
- use-xdg-base-directories does not effect $PATH
- Logging in and out breaks Yabai's Scripting Addition
- Yabi Scripting Addition fails to inject into Dock.app HOT 1
- (re)install fails with nonexistent path in nix-store HOT 1
- If use-xdg-base-directories is true then NIX_PROFILES is not correct
- Flake installation fails if `~/.config` is a Git repository and `nix-darwin/flake.nix` is not committed HOT 2
- sdate builds and installs but will not run HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-darwin.