nixos-config icon indicating copy to clipboard operation
nixos-config copied to clipboard

need a simple guide about how to use this repo on my Mac Air

Open wangyubow opened this issue 1 year ago • 1 comments

Hi, I am new to nixos. and tried to use this repo to install on my Mac air book.

Could you add a simple a guide on how to install the repo to my Mac?

Should I modify some where in flake.nix? to match my Mac?

I tried but failed. git clone to my Mac, and cd nixos-config. Error messages below:

darwin-rebuild switch --flake .
zsh: command not found: darwin-rebuild ➜ nixos-config git:(main) ✗ nix run nix-darwin -- switch --flake . building the system configuration... error: flake 'git+file:///Users/etcrbwa/nixos-config?ref=refs/heads/main&rev=ae1594d00651f673c6a51d7aac14366b79c2c5cc' does not provide attribute 'packages.x86_64-darwin.darwinConfigurations.Wangs-MacBook-Air.system', 'legacyPackages.x86_64-darwin.darwinConfigurations.Wangs-MacBook-Air.system' or 'darwinConfigurations.Wangs-MacBook-Air.system'

wangyubow avatar Jul 08 '24 21:07 wangyubow

Looks like you need to first have nix-darwin

zxexz avatar Sep 14 '24 07:09 zxexz