Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation how to use overlays #24

Open
teutat3s opened this issue Jun 23, 2023 · 2 comments
Open

Documentation how to use overlays #24

teutat3s opened this issue Jun 23, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@teutat3s
Copy link

teutat3s commented Jun 23, 2023

Thank you for these useful templates!

I'd like to use a nixpkgs overlay with this (use a different version of nix). Do you have an example how to use overlays with these templates? In my case I use mkARMMacosSystem.

I'd like to apply the following overlay to nixpkgs:

final: prev: {
  nix = final.nixVersions.nix_2_16;
}
@srid srid added the documentation Improvements or additions to documentation label Jun 23, 2023
@srid
Copy link
Owner

srid commented Jun 23, 2023

Happy to accept a docs PR for this, but this is what it looks like:

https://github.com/srid/nixos-config/blob/17a7452602a9e0c9b8b35e8df91795003b1a051a/flake.nix#L88-L93

image

@srid
Copy link
Owner

srid commented Jun 23, 2023

That said, if all you want is to use a different version of Nix, you probably want to set nix.package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants