-
Notifications
You must be signed in to change notification settings - Fork 21
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
Cannot use nixpkgs.overlays #10
Comments
A bit hacky but the following will currently work reasonably well:
reference: Line 28 in af43744
It should be pretty straight forward to add something like this without hacks, though. |
Yeah so there are two approaches here. In general we tend to avoid using overlays for this when possible and instead add additional package sets to There are however cases where you really want an overlay, and these are currently not yet taken into account in system-manager. So it would definitely be good if we would either allow the user to specify a list of overlays that we will pass to nixpkgs, or to allow the user to easily pass in their own instance of nixpkgs to which they can then apply any overlays that they want. I will look into this as soon as I find the time. |
Describe the bug
I tried setting up a system-manager flake where I consume another flake that exposes a custom package and a corresponding
nixosModule
with asystemd
service. In thesystem-manager
flake I could successfully consume thenixosModule
, however the package required for the service could not be found inpkgs
. I guess this might be related to no mention ofoverlays
when evaluatingnixpkgs.legacyPackages
insystem-manager/nix/lib.nix
Line 20 in af43744
Expected behavior
Being able to set
nixpkgs.overlays
.The text was updated successfully, but these errors were encountered: