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

[flakes] NIX_PATH impurity #144

Open
roberth opened this issue Aug 25, 2021 · 1 comment
Open

[flakes] NIX_PATH impurity #144

roberth opened this issue Aug 25, 2021 · 1 comment

Comments

@roberth
Copy link
Member

roberth commented Aug 25, 2021

Running

$ NIX_PATH= nixops deploy -d nixops-example-dummy --build-only

I get error: file 'nixpkgs/nixos/modules/virtualisation/ec2-amis.nix' was not found in the Nix search path (add it using $NIX_PATH or -I), even without actually using nixops-aws; module system import resolution must be able to get all imports.

This is an impurity, which is a bug since flakes. It should be taken from network.nixpkgs instead.

@Uthar
Copy link

Uthar commented Sep 12, 2021

I had this problem too, fixed it like this:

  1. Uthar/nixops@eff4449
  2. Uthar@c149649

Uthar@c149649#diff-41b598abd0ad034083691ba71cbf1a0280064be95e76e0a43b0d9df7664cdfff
is still hardcoded against <nixpkgs> though, but in my case it was fine

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