lix-module does not seem to work with nix-darwin #42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
*Expected behavior:
After a nix-darwin install following the Lix install instructions I expect
nix --version
to report that I'm using Lix.Observed behavior:
After a nix-drawing install following the Lix install instructions it seems that
lix-module
is not setting the nix package in nix-darwin to Lix.To reproduce:
After a fresh install of Lix on a Mac, I can see that the system is indeed using Lix:
After installing nix-darwin using the flake configuration at the bottom I get:
There are currently 2 nixes installed in the system -- this seems to be normal with nix-darwin installs. The first one on the path is the one provided by nix-darwin, the second one is the one provided by the Lix install:
I can verify that, in deed, the second one reports Lix, as expected.
Here is the minimal
flake.nix
used, which follows the Lix install directionsI'm not very familiar with
nix-darwin
, but your setup looks wrong. This line:Sets
pkgs
to be as is innixpkgs
input. Andnixpkgs
input doesn't have an overlay applied. So basically, you force-override thepkgs
to ignore the overlay that is supplied bylix-module
.Removing this line should help. Let me know if there are further issues, or if there's anything on the documentation side that we should fix!
That did it. I can't figure out how that line made it into my flake, as I have searched for the likely places where it could have come from and I can't find it. I thought it came from the nix-darwin flake instructions, but it is clearly not there.
Thanks for the reply!