Git Product home page Git Product logo

Comments (5)

Enzime avatar Enzime commented on August 17, 2024 1

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.

hitsmaxft avatar hitsmaxft commented on August 17, 2024 1

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.

hitsmaxft avatar hitsmaxft commented on August 17, 2024

@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.

Enzime avatar Enzime commented on August 17, 2024

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.

hitsmaxft avatar hitsmaxft commented on August 17, 2024

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'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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.