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

How to Add Unfree Packages? #83

Open
AngleSideAngle opened this issue Feb 2, 2025 · 2 comments
Open

How to Add Unfree Packages? #83

AngleSideAngle opened this issue Feb 2, 2025 · 2 comments

Comments

@AngleSideAngle
Copy link

I was trying to contribute a collection of packages that I regularly use to this repository, including nonfree software. However, I ran into quite a bit of difficulty figuring out how to incorporate some kind of configuration for enabling nonfree packages since nixpak/pkgs is a flake. I'm not very experienced with nix, so I would appreciate guidance on how to pragmatically do this.

The idea I've been trying to implement was adding this functionality to a module in flake.nixosModules.default, since then config.allowUnfree could be set by the user. I can't seem to figure out how to do this though, since builders.mkNixPakPackage is defined inside a perSystem attribute, and all my attempts to move it have resulted in infinite recursion errors for reasons beyond my comprehension.

Any advice would be appreciated :)

@max-privatevoid
Copy link
Member

I'd rather not have unfree software in this repo since I build all the flake outputs in CI and then provide them on my publicly accessible binary cache.

@AngleSideAngle
Copy link
Author

That's understandable. Perhaps they could be in a separate repository?

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

No branches or pull requests

2 participants