Skip to content

Conversation

leo60228
Copy link

@leo60228 leo60228 commented Sep 1, 2025

This defaults to import "${npkgs}/lib", which if npkgs comes from a flake has a fallback lib.trivial.version like 25.11pre-git instead of the correct 25.11.20250828.dfb2f12.

@kylemanna
Copy link

Encountered this too, but this change doesn't seem to fix it for me:

$ git diff flake.nix
diff --git a/flake.nix b/flake.nix
index 41e9a45..0951a78 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,7 +2,7 @@
   description = "Master Flake";

   inputs = {
-    colmena.url = "github:zhaofengli/colmena";
+    colmena.url = "github:zhaofengli/colmena/pull/313/merge";
     colmena.inputs.nixpkgs.follows = "nixpkgs";

     disko.url = "github:nix-community/disko";
$ nix eval .#nixosConfigurations.host-a.config.system.nixos.version
"25.11.20250918.0147c2f"
$ nix eval .#colmenaHive.nodes.host-a.config.system.nixos.version
"25.11pre-git"

Am I missing something?

@leo60228
Copy link
Author

How are you specifying Nixpkgs? This still only works if you use nixpkgs.legacyPackages.${system} and not import nixpkgs, unfortunately.

@kylemanna
Copy link

This still only works if you use nixpkgs.legacyPackages.${system}

Ahh, gotcha. Updated to use legacyPackages and now this PR works for me. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants