Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatch header versions on nixos #26

Open
Uncorrupt3318 opened this issue Jul 16, 2024 · 11 comments
Open

Mismatch header versions on nixos #26

Uncorrupt3318 opened this issue Jul 16, 2024 · 11 comments

Comments

@Uncorrupt3318
Copy link

Uncorrupt3318 commented Jul 16, 2024

Hi, I'm trying to install this plugin, but it doesn't load, it says:
hyprsplit: Failure in initialization: Version mismatch (headers ver is not equal to running hyprland ver.

I'm not sure if it's a bug or a problem with my config :/

flake.nix

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
    hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
    hyprsplit = {
      url = "github:shezdy/hyprsplit/main";
      inputs.hyprland.follows = "hyprland";
    };
    home-manager = {
      url = "github:nix-community/home-manager/release-24.05";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
  
  ...
  
    outputs = { nixpkgs, hyprland, home-manager, ... } @ inputs:
  {
    nixosConfigurations.kubapc = nixpkgs.lib.nixosSystem {
      specialArgs = { inherit inputs; };
      
      ...
      
        home-manager.nixosModules.home-manager
        {
          home-manager.extraSpecialArgs = { inherit inputs; };
          home-manager.useGlobalPkgs = true;
          home-manager.useUserPackages = true;
          home-manager.users.jakub = import ./home.nix;
 
          # Optionally, use home-manager.extraSpecialArgs to pass
          # arguments to home.nix
        }
      ];
   };
    
  };
}

home.nix

{ config, pkgs, inputs, ... }:

{
  wayland.windowManager.hyprland.enable = true;
  wayland.windowManager.hyprland.extraConfig = ''${builtins.readFile ./dotfiles/hypr/hyprland.conf}'';
  wayland.windowManager.hyprland.plugins = [ inputs.hyprsplit.packages.${pkgs.stdenv.hostPlatform.system}.hyprsplit ];
}

configuration.nix

  programs.hyprland.enable = true;
  programs.hyprland.package = inputs.hyprland.packages."${pkgs.system}".hyprland;

Could someone give me a hand?

@shezdy
Copy link
Owner

shezdy commented Jul 16, 2024

wayland.windowManager.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland in home.nix?

@Uncorrupt3318
Copy link
Author

I didn't have that in the home.nix. But after putting it in, it still doesn't work. Even if I put it in, and remove the line in configuration.nix.

@shezdy
Copy link
Owner

shezdy commented Jul 16, 2024

if that doesn't work then im not sure what is wrong. all i know is that the plugin is somehow built for a different version hyprland. someone that actually uses nixos will probably have to help you :/

@Uncorrupt3318
Copy link
Author

Yeah no worries, thanks anyway. I'm sure the plugins works great, keep up the good work :)

@PolarizedIons
Copy link

In-case this helps someone, I had the same, and "solved" this by rebooting, instead of switching nix profiles. hyprwm/Hyprland#6910 (comment)

@ShadowReaper420
Copy link

Running into the same issue sadly I think there might just be something wrong with the flake in this repo

@ShadowReaper420
Copy link

ShadowReaper420 commented Oct 10, 2024

Managed to get it to work with this

wayland.windowManager.hyprland = {
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
enable = true;
plugins = [
inputs.hyprland-plugins.packages."${pkgs.system}".hyprsplit
];
};

@howyay
Copy link
Contributor

howyay commented Oct 11, 2024

Might be outdated pin in flake.lock?

@kirilsh1993
Copy link

kirilsh1993 commented Oct 14, 2024

Happens on every update of Hyprland for me, it goes away after a reboot.
I am using the flake version of both Hyprland & Hyprsplit.
It feels like one component is reloaded automatically, while the other is not (hence version mismatch).

My config also has the following option enabled:
hyprsplit.inputs.hyprland.follows = "hyprland";

@ShadowReaper420
Copy link

@kirilsh1993 Pretty sure that's normal since hyprland needs to be restarted to rebuild plugins.

@MisterrrX
Copy link

Got the same issue on Arch after upgrading to Hyprland 0.45

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

No branches or pull requests

7 participants