hyprland: switch to nixpkgs hyprland package
This commit is contained in:
parent
1a22848985
commit
ada6d15a19
4 changed files with 23 additions and 10 deletions
|
@ -34,14 +34,14 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = inputs'.hyprland.packages.hyprland;
|
||||
default = pkgs.hyprland;
|
||||
description = ''
|
||||
The Hyprland package to be used.
|
||||
'';
|
||||
};
|
||||
portalPackage = mkOption {
|
||||
type = package;
|
||||
default = inputs'.hyprland.packages.xdg-desktop-portal-hyprland;
|
||||
default = pkgs.xdg-desktop-portal-hyprland;
|
||||
description = "The hyprland portal package";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -25,10 +25,10 @@ with lib; let
|
|||
#exec-once=[workspace 1;fullscreen;noanim] ${
|
||||
pkgs.greetd.${cfg.greeter}
|
||||
}/bin/${cfg.greeter} -l; ${
|
||||
inputs'.hyprland.packages.hyprland
|
||||
pkgs.hyprland
|
||||
}/bin/hyprctl dispatch exit
|
||||
#exec-once=${
|
||||
inputs'.hyprland.packages.hyprland
|
||||
pkgs.hyprland
|
||||
}/bin/hyprctl dispatch focuswindow ${cfg.greeter}
|
||||
'';
|
||||
in {
|
||||
|
@ -49,7 +49,7 @@ in {
|
|||
enable = true;
|
||||
settings.default_session = {
|
||||
command = "${
|
||||
inputs'.hyprland.packages.hyprland
|
||||
pkgs.hyprland
|
||||
}/bin/Hyprland --config ${hyprlandConfig}";
|
||||
user = username;
|
||||
};
|
||||
|
|
|
@ -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