Open ashkan-leo opened 3 years ago
Yeah, darwin-option wasn't updated to support flakes yet.
@ashkan-leo https://github.com/gytis-ivaskevicius/flake-utils-plus has a NixOS module (that works in nix-darwin) that can automatically add nix registry and NIX_PATH
entries for your flake inputs. Unfortunately it doesn't work for <darwin>
yet (see https://github.com/gytis-ivaskevicius/flake-utils-plus/issues/107). In the meantime, you can do this yourself with the nix.nixPath
config.
Personally, I went ahead and reimplemented the flake-utils-plus solution (which uses symlinks in /etc/nix/inputs
to keep all shells up-to-date on config rebuilds). Here's my module:
modules/nix.nix
With this, my core config just says
{
nix.generateRegistryFromInputs = true;
nix.generateNixPathFromInputs = true;
}
@LnL7 I would really love to see darwin-option
learn to use flakes. Perhaps this issue could be repurposed for that?
Hello
First, thanks for the fantastic project.
I have installed nix-darwin on my system using flakes. I can rebuild my configurations, but
darwin-option
does not work. I get the following error:What should
darwin
be in theNIX_PATH
and what is the best place to set it in my configuration files?