From f6499392fe3e6e56cc6845e19b635285645c0511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Wed, 28 Sep 2022 15:29:35 +0200 Subject: [PATCH] fix(gaming): fix GameMode Add gamemode to system packages so libraries can be resolved. Also adds notification for starting/stopping GameMode. --- system/gaming.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/system/gaming.nix b/system/gaming.nix index cef2041..c409a92 100644 --- a/system/gaming.nix +++ b/system/gaming.nix @@ -1,7 +1,17 @@ { config, pkgs, ... }: { - programs.gamemode.enable = true; + environment.systemPackages = with pkgs; [ gamemode ]; + + programs.gamemode = { + enable = true; + settings = { + custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode stopped'"; + }; + }; + }; programs.steam.enable = true; programs.steam.remotePlay.openFirewall = true;