Flakes, hyprland and hyprland plugins. Version mismatch

Me again with silly questions:
so i use flake to install hyprbar, and hyprland, i made sure that their versions won’t be mismatched, however, they still do, and idk why
[hyprbars] Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver)

the following is my flake.nix, full path: /etc/nixos/flake.nix:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprland.url = "github:hyprwm/Hyprland";
    hyprland-plugins = {
      url = "github:hyprwm/hyprland-plugins";
      inputs.hyprland.follows = "hyprland";
    };
  };
outputs = { home-manager, nixpkgs, ... }@inputs:
  let
    username = "nahah";
    hostname = "nuhuh";
    system = "x86_64-linux";
    pkgs = import nixpkgs {
      inherit system;
      config.allowUnfree = true;
    };
  in
  {
    nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
      specialArgs = { inherit inputs; };
      modules = [ ./configuration.nix ];
    };
    homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {
      inherit pkgs;
      extraSpecialArgs = { inherit inputs; };
      modules = [ ./home.nix ];
    };
  };
}

i made sure to put the line inputs.hyprland.follows = "hyprland"; so that the version they are running won’t be mismatched, they still do tho

here is a snippet of my configuration.nix, full path: /etc/nixos/configuration.nix:
no imports, i don’t think that’s the problem tho

{inputs, pkgs, ...}:
{
  programs.hyprland = {
    enable = true;
    xwayland.enable = true;
    package = inputs.hyprland.packages.${pkgs.system}.hyprland;
  };
}

and home.nix, full path /etc/nixos/home.nix:

{inputs, pkgs, ...}: {
  imports = [
    inputs.ags.homeManagerModules.default
  ];

  wayland.windowManager.hyprland = {
    enable = true;
    plugins = [
      inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars
    ];
  };
}

I don’t use hyprbars specifically myself but AFAICT you’ve taken all the proper steps at the Nix/Flakes level, there’s nothing obviously missing. Might try checking older revisions of both flake inputs from 2-4 weeks ago and see if it’s just that the plugin has gotten temporarily stale? I update all my inputs on a weekly cadence and occasionally I will get build failures or crashes on my Hyprland stuff, so I think it might be the price we pay for not using tagged releases of the Hyprland stack.

  outputs = {nixpkgs, home-manager, hyprland, ...}: {
    homeConfigurations."user@hostname" = home-manager.lib.homeManagerConfiguration {
      pkgs = nixpkgs.legacyPackages.x86_64-linux;

      modules = [
        hyprland.homeManagerModules.default
        {wayland.windowManager.hyprland.enable = true;}
        # ...
      ];
    };
  };
}

I added this into output and rebuild, then it worked