hyprland: switch to nixpkgs hyprland package
This commit is contained in:
parent
1a22848985
commit
ada6d15a19
4 changed files with 23 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue