Need a Hint: Module build fails on certain system of same architecture

Hi there,

I’m using a module on two different systems of the same architecture. For some reason, the module builds completely fine on one, but it will fail on the other, saying that it cannot find a specific variable. I’ve tried doing a bunch of garbage collection, etc., but I’m stumped and confused about why this would happen.

  • Both systems are the same version and, other than the hardware configuration, are identical, using the same import paths, Etc.
  • The module that I’m trying to build is an external flake that I’m pulling in Via an input.
  • I’ve ensured that my overlays and configuration are identical. in fact, with my editor of choice, when I highlight a specific string, it shows all instances of it in my flake. so I’m fairly confident there.

Do you have any hints? Thank you in advance for your time.

Solved it.

 # evo = new work laptop hostname
        evo = nixpkgs.lib.nixosSystem {
          # format different due to kolide-launcher
          # nixpkgs.config.allowUnfree = true; only applies to non-flakes.
          specialArgs = {
            inherit inputs secrets;
            pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
            };
          };

it was the:

pkgs = import nixpkgs {
              system = "x86_64-linux";
              config.allowUnfree = true;
            };

I removed that, and it started working. It was in there from when I was trying to configure Kolide. I had missed that the definitions were slightly different. I thought they were identical.

:man_facepalming: