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

Example usage inside flake.nix #32

Open
bobvanderlinden opened this issue Mar 23, 2021 · 1 comment
Open

Example usage inside flake.nix #32

bobvanderlinden opened this issue Mar 23, 2021 · 1 comment

Comments

@bobvanderlinden
Copy link

I'm trying to use napalm inside my flake.nix. However I cannot understand how overlays are supposed to work this way. I kind of expected a lib function. The readme only talks about using niv, but my project already uses flakes as-is. Could you give an example in the readme?

@jtojnar
Copy link
Contributor

jtojnar commented Apr 24, 2021

The simplest is probably creating a new nixpkgs instance with overlay added to overlays.

https://github.com/jtojnar/nixfiles/blob/b062127e9dc616249fb5e39204ae910c3470ed6b/flake.nix#L50-L58

Then, you will be able to use it through pkgs.napalm.

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