hyprland: switch to nixpkgs hyprland package

This commit is contained in:
Charlie Root 2024-10-29 18:29:39 +01:00
commit ada6d15a19
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
4 changed files with 23 additions and 10 deletions

View file

@ -23,17 +23,18 @@ in {
config = mkIf cfg.enable {
programs.hyprland = {
enable = true;
inherit (cfg) package portalPackage;
package = pkgs.hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
};
# xdg Portal
xdg.portal = {
enable = true;
configPackages = mkDefault [
cfg.portalPackage
pkgs.xdg-desktop-portal-hyprland
];
extraPortals = [
pkgs.xdg-desktop-portal-gtk
cfg.portalPackage
pkgs.xdg-desktop-portal-hyprland
];
config = {
common.default = ["gtk" "hyprland"];
@ -43,11 +44,12 @@ in {
home-manager.users.${username} = {
wayland.windowManager.hyprland = {
enable = true;
inherit (cfg) package;
package = pkgs.hyprland;
# Split-monitor-workspaces provides awesome-like workspace behaviour
plugins = [
hyprsplit
pkgs.hyprlandPlugins.hyprsplit
pkgs.hyprlandPlugins.hypr-dynamic-cursors
];
# Xwayland for X applications

View file

@ -61,6 +61,17 @@ in {
num_workspaces = 10;
persistent_workspaces = true;
};
hypr-dynamic-cursors = {
enabled = true;
mode = "tilt";
rotate = {
length = 20;
offset = 0.0;
};
threshhold = 2;
shake.enabled = false;
};
};
};
};