diff --git a/flake.nix b/flake.nix index 978defe..b5ae866 100644 --- a/flake.nix +++ b/flake.nix @@ -102,6 +102,7 @@ ./modules/graphical/plasma.nix ./modules/graphical/hyprland.nix ./modules/graphical/emulators.nix + ./modules/graphical/gamemode.nix ./modules/graphical/shared.nix ./modules/hardware/nvidia.nix ./modules/hardware/ssd.nix diff --git a/modules/graphical/gamemode.nix b/modules/graphical/gamemode.nix new file mode 100644 index 0000000..a9fc680 --- /dev/null +++ b/modules/graphical/gamemode.nix @@ -0,0 +1,11 @@ +{ config, lib, pkgs, ... }: + +{ + programs.gamemode = { + enable = true; + settings.custom = { + start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'"; + end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; + }; + }; +} diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 17e2375..4c0532b 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -10,6 +10,7 @@ in enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + gamescopeSession.enable = true; }; programs.kdeconnect.enable = true; diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix index e09bd32..1017c4e 100644 --- a/modules/hardware/nvidia.nix +++ b/modules/hardware/nvidia.nix @@ -28,6 +28,6 @@ # accessible via `nvidia-settings`. nvidiaSettings = true; # Optionally, you may need to select the appropriate driver version for your specific GPU. - package = config.boot.kernelPackages.nvidiaPackages.production; + package = config.boot.kernelPackages.nvidiaPackages.beta; }; }