nixops icon indicating copy to clipboard operation
nixops copied to clipboard

'require' does not work on flakes deployments

Open cab404 opened this issue 3 years ago • 1 comments

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 ];
    };

  };

}

cab404 avatar Mar 27 '21 00:03 cab404

We should consider replacing require first: #1486

roberth avatar Nov 18 '21 13:11 roberth