Giter Site home page Giter Site logo

Comments (14)

K900 avatar K900 commented on June 12, 2024 5

#1573 is the fix, I'll poke Robert about it.

from nixops.

K900 avatar K900 commented on June 12, 2024 2

I'll take a look tomorrow morning.

from nixops.

talyz avatar talyz commented on June 12, 2024 2

I've opened #1573, which solves this for me, but it would be nice with more testing.

from nixops.

kevincox avatar kevincox commented on June 12, 2024 1

Maybe we should do that for now and push a patch release? nixops has been broken in nixpkgs for quite a while now, and while it is possible to use a pinned version it is annoying and requires every user to find out what is happening on their own.

from nixops.

talyz avatar talyz commented on June 12, 2024 1

Yes, that should be because the hetzner plugin is missing. A somewhat easy way to test this is to override NixOps' src attribute in nixpkgs.

from nixops.

kevincox avatar kevincox commented on June 12, 2024

I'm seeing this too for every key in my config (at least removing the first few just saw other ones fail).

Likely related to #1569 cc @K900 @roberth.

My keys look like:

	deployment.keys.foo = {
		text = "Some secret";
		destDir = "/var/keys";
	};

from nixops.

datafoo avatar datafoo commented on June 12, 2024

Any update on this?

from nixops.

K900 avatar K900 commented on June 12, 2024

Sorry, completely lost track of this :( Can you try #1572 ?

from nixops.

datafoo avatar datafoo commented on June 12, 2024

Sorry, completely lost track of this :( Can you try #1572 ?

Is there an easy way to get the a flake input with your contribution?

from nixops.

K900 avatar K900 commented on June 12, 2024

github:K900/nixops/patch-1

from nixops.

datafoo avatar datafoo commented on June 12, 2024

That did not fix the problem.

from nixops.

K900 avatar K900 commented on June 12, 2024

Sorry then, I'm temporarily out of ideas. I'll have to look at it closer later. For now you should be able to comment out this line:

typeguard.check_type(value, ann)

from nixops.

zeratax avatar zeratax commented on June 12, 2024

github:K900/nixops/patch-1

hope this isn't too offtopic but I am trying to use these patches, but with a flake like this:

{
  inputs = {
    nixpkgs.url = "nixpkgs/nixos-unstable";
    flake-utils.url   = "github:numtide/flake-utils";
    nixops.url = "github:talyz/nixops/mapping-types";
    nixops.inputs.nixpkgs.follows = "nixpkgs";
  };
  
  outputs = { self, nixpkgs, flake-utils, nixops, ... }:
    {
      nixopsConfigurations.default = {
        inherit nixpkgs;
        network.storage.legacy.databasefile = "~/.nixops/deployments.nixops";
        network.enableRollback = true;
      };

    } // flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        nixops-pkgs = nixops.packages.${system};
      in {
        devShell = pkgs.mkShell {
            buildInputs = [
              pkgs.nix
              nixops-pkgs.default
            ];
        };

        formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
      });
}

I just get

error: The option `deployment.hetznerCloud' does not exist. Definition values:
...

wish something like this would work ^^ #1324 (comment)

from nixops.

kevincox avatar kevincox commented on June 12, 2024

This has been broken in nixpkgs-unstable for a month now. Can we consider merging a quick fix (disabling the type check) for now until we can get a full resolution?

For those who need to deploy now an easy workaround is using nixops from 23.05 nix shell github:NixOS/nixpkgs/nixos-23.05#nixopsUnstable -c nixops help. Be aware what version you are using though if you need bug fixes or new features.

from nixops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.