From 5f81642dc114b715280a5dbf681b0e43f5683c55 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Fri, 16 May 2025 19:28:42 +0200 Subject: [PATCH] hyprland: Fix gamemode service --- modules/programs/hypr/hyprland.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/programs/hypr/hyprland.nix b/modules/programs/hypr/hyprland.nix index 5ddc1a5..334a9ad 100644 --- a/modules/programs/hypr/hyprland.nix +++ b/modules/programs/hypr/hyprland.nix @@ -412,6 +412,8 @@ in { "systemctl --user import-environment" "dbus-update-activation-environment --systemd --all" "hyprctl setcursor Bibata-Modern-Classic 24" + # ensures the systemd service knows what "hyprctl" is :) + (lib.mkIf config.mods.gaming.gamemode "systemctl try-restart gamemoded.service --user") # other programs "${browserName}"