it works :D

This commit is contained in:
KoenDR06 2025-07-18 12:21:57 +02:00
parent eeb9ce59d9
commit 270e52070d
13 changed files with 785 additions and 1007 deletions

View file

@ -4,7 +4,7 @@
pkgs,
...
}: let
inherit (lib) mkIf;
inherit (lib) mkIf mkEnableOption;
cfg = config.horseman.wm.hyprland;
in {
imports = [
@ -12,6 +12,10 @@ in {
./keybindings.nix
];
options = {
horseman.wm.hyprland.enable = mkEnableOption "Hyprland";
};
config = mkIf cfg.enable {
programs.hyprland = {
enable = true;
@ -47,6 +51,7 @@ in {
"hypridle"
"hyprpaper"
"swaync"
"systemctl --user start hyprpolkitagent"
];
env = [
@ -261,6 +266,7 @@ in {
misc = {
forceDefaultWallpaper = 0;
keyPressEnablesDPMS = true;
};
input = {
@ -280,6 +286,22 @@ in {
monitors = {
defaultMonitor = true;
};
sleep = {
lockCommand = "pidof hyprlock || hyprlock";
listeners = [
{
timeout = 300;
onTimeout = "hyprctl dispatch dpms off";
onResume = "hyprctl dispatch dpms on";
}
{
timeout = 310;
onTimeout = "loginctl lock-session";
}
];
};
};
services.logind.extraConfig = ''