From 81ed9c5b207e3b613f133969c81e5c0063f5ba8e Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 19 Jan 2023 15:18:01 +0100 Subject: [PATCH] gaming: Try to wrap gamescope --- modules/programs/gaming/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/gaming/default.nix b/modules/programs/gaming/default.nix index 8205f6b..c93bde2 100644 --- a/modules/programs/gaming/default.nix +++ b/modules/programs/gaming/default.nix @@ -22,11 +22,18 @@ in { #steam-wrapped # Custom package - gamescope + #gamescope corectrl ]; + security.wrappers.gamescope = { + owner = "root"; + group = "root"; + source = "${pkgs.gamescope}/bin/gamescope"; + capabilities = "cap_sys_nice+ep,cap_setgid+ep,cap_setuid+ep"; + }; + hardware.steam-hardware.enable = true; }; }