shezdy / hyprsplit

hyprland plugin for separate sets of workspaces on each monitor
BSD 3-Clause "New" or "Revised" License
94 stars 5 forks source link

Mismatch header versions on nixos #26

Open jeikashu opened 1 month ago

jeikashu commented 1 month ago

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 commented 1 month ago

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

jeikashu commented 1 month ago

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 commented 1 month ago

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 :/

jeikashu commented 1 month ago

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

PolarizedIons commented 1 month ago

In-case this helps someone, I had the same, and "solved" this by rebooting, instead of switching nix profiles. https://github.com/hyprwm/Hyprland/issues/6910#issuecomment-2256672652