LnL7 / nix-darwin

nix modules for darwin
MIT License
3.21k stars 459 forks source link

`nix run nix-darwin`: `error: cannot find flake 'flake:nix-darwin' in the flake registries` #865

Open jjant opened 9 months ago

jjant commented 9 months ago

When running nix run nix-darwin on a fresh mac/nix installation, I get

error: cannot find flake 'flake:nix-darwin' in the flake registries

I used nix run github:LnL7/nix-darwin to make it work.

Where is the plain nix-darwin flake supposed to come from? I was following "Flakes > Step 1" from the readme.

Enzime commented 9 months ago

It comes from the global flake registry: https://github.com/NixOS/flake-registry/blob/master/flake-registry.json#L257-L267

Which is configured through the flake-registry Nix config option: https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-flake-registry