Skip to content

[Nix] Add overlays to flake #314

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

[Nix] Add overlays to flake #314

wants to merge 3 commits into from

Conversation

matt1432
Copy link
Contributor

@matt1432 matt1432 commented Mar 8, 2025

  1. Moved the inputs at the top of the flake like in the ags flake.
  2. Added the systems input. You can read on why this is beneficial here: https://github.com/nix-systems/nix-systems
  3. Added overlays of all the packages under the astalLibs namespace. This allows cleaner nix code and ensures users will have compatible versions of dependencies in their system. For example, using overlays for astal and ags fixes nix lib.bundle with gtk4 does not work ags#678 for me
  4. Changed the forAllSystems function to my own so it makes the function param pkgs to simplify the use of the overlays

I have a PR for AGS as well if this gets merged. Of course the new function name and namespace name can be changed if you wish

@matt1432
Copy link
Contributor Author

matt1432 commented Mar 9, 2025

The only thing not making use of the overlays is the lua function but I don't use it so I didn't want to mess it up

@matt1432 matt1432 force-pushed the overlay branch 2 times, most recently from 462862d to fa11c05 Compare April 10, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nix lib.bundle with gtk4 does not work
1 participant