Open GARcraft opened 1 year ago
I have the exact same issue and would love to know how to solve this. I suspect it is because in your (and my) config, split-monitor-workspaces builds on the Hyprland pointed at by hyprland.url, while the actual Hyprland we use is the one from home-manager.
add package = inputs.hyprland.packages.${pkgs.system}.hyprland
to wayland.windowManager.hyprland
like this
wayland.windowManager.hyprland = {
...
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
...
}
that fixes it for me and is listed on the hyprland wiki for using flakes :)
add
package = inputs.hyprland.packages.${pkgs.system}.hyprland
towayland.windowManager.hyprland
like thiswayland.windowManager.hyprland = { ... package = inputs.hyprland.packages.${pkgs.system}.hyprland; ... }
that fixes it for me and is listed on the hyprland wiki for using flakes :)
This did not fix it for me. I tried with or without cachix. The plugin does not crash when I start hyprland in a nested window.
This is broken for me too, I tried to use a custom version for a while but it went 404.
This is broken for me too, I tried to use a custom version for a while but it went 404.
For now at least, just use Hyprsplit. They are functionality wise the exact same for me https://github.com/shezdy/hyprsplit
works fine for me. here's what i did (make sure to add your settings option):
{ inputs, pkgs, ... }:
{
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
plugins = [
inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces
];
};
}
parts of my flake
{
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
};
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland"; # <- make sure this line is present for the plugin to work as intended
};
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
inherit (self) outputs;
nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [
./hosts/default/system/configuration.nix
];
};
};
homeConfigurations = {
default = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs;};
modules = [
./home/profiles/default/default.nix
];
};
};
};
}
I think it's worth mentioning here that I had to restart Hyprland for the fix presented by @OakleyCord to work.
I had same issue, but resolved after executing nix flake update
in my configurations.
Current versions
It looks can happen if the version of hyprland is older than plugin expected.
Hi!
I'm using NixOs and I want to use this plugin in my Hyprland.
After installing my plugin with Home-manager it shows that error:
Can you help me please?
Here is my flake.nix (string "username" is changed with my actual user name):