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

'require' does not work on flakes deployments #1449

Open
cab404 opened this issue Mar 27, 2021 · 1 comment
Open

'require' does not work on flakes deployments #1449

cab404 opened this issue Mar 27, 2021 · 1 comment

Comments

@cab404
Copy link
Member

cab404 commented Mar 27, 2021

To repro:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    nixops.url = "github:nixos/nixops";
  };

  outputs = { self, nixpkgs, nixops, ... }: {
    nixopsConfigurations = {
      default = {
        inherit nixpkgs;
        require = [


          # Won't trigger any errors, or affect config if exists.
          ./this_file_does_not_exist.nix 


        ];
        host = { };
      };
    };

    # for ease of testing
    devShell.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; mkShell {
      buildInputs = [ nixops.defaultPackage.x86_64-linux ];
    };

  };

}
@roberth
Copy link
Member

roberth commented Nov 18, 2021

We should consider replacing require first: #1486

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