Stylix and nixpkgs version mismatch

Hey all,

Kinda confused about this issue that just started popping up today.

On rebuild I’m receiving:

evaluation warning: You are using different Stylix and NixOS versions. This is
likely to cause errors and unexpected behavior. It is highly
recommended that you use a version of Stylix that matches your chosen
version of NixOS.

                If you are willing to accept the risks that come with using
                mismatched versions, you may disable this warning by adding

                    stylix.enableReleaseChecks = false;

                to your configuration.

In my flake.nix I have these inputs:

    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    stylix = {
      url = "github:danth/stylix";
      inputs.nixpkgs.follows = "nixpkgs";
    };

I can’t figure out why there would be a version mismatch… any ideas?

Awesome, thanks for the info and letting me know I’m not going crazy.

You might still be, nix will do that to a person :grin:

But yeah you can either disable the warning (via the option mentioned in the error), ignore the warning and wait for the fix, fork and use your own fork, or fork and PR the fix yourself.

I’d probably disable the check regardless since I don’t think it’s well-designed (for one, it compares a single version to three different projects that all bump their versions at different times), but depends how much it bothers you :slight_smile: