Fix hypridle's "lock before sleep"

This commit is contained in:
SebastianStork 2025-03-26 00:45:11 +01:00
parent 309b2a4a96
commit 3be4bf9e54
5 changed files with 169 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{
config,
pkgs,
pkgs-unstable,
lib,
...
}:
@ -8,15 +8,19 @@
options.myConfig.de.hyprland.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.de.hyprland.enable {
programs.hyprland.enable = true;
programs.hyprland = {
enable = true;
package = pkgs-unstable.hyprland;
portalPackage = pkgs-unstable.xdg-desktop-portal-hyprland;
};
hardware.graphics = {
package = pkgs-unstable.mesa;
package32 = pkgs-unstable.pkgsi686Linux.mesa;
};
environment.sessionVariables.NIXOS_OZONE_WL = "1";
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
services.gvfs.enable = true;
};
}