-
Notifications
You must be signed in to change notification settings - Fork 395
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
feat: add overlays to flake.nix #218
Conversation
flake.nix
Outdated
overlays = { | ||
default = overlays.yazi; | ||
yazi = final: prev: { | ||
yazi = final.callPackage ./nix/yazi.nix { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
safer to just inherit yazi
here to have a single source of truth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't re-use the yazi
inside eachDefaultSystem
because it's already instantiated into a specific architecture. An overlay should not be dependent on a specific architecture and accept whatever nixpkgs
that was passed to it.
you can install |
In flakes, you actually can't access the current system architecture AFAIK. So you have to use workarounds by passing custom args from |
I'm cleaning up PRs, looks like this PR is just one step away. @teto, would you like to give it a review? If it's ready, feel free to ping me anytime to get it merged! 😉 |
Co-authored-by: XYenon <[email protected]>
9e2cfcd
to
6a651f4
Compare
Thank you all, merged! 🎉 |
Having overlays makes it easier to install on NixOS systems.