From f9541ba01b9f22dd59e1aa031eb0117b2d93cede Mon Sep 17 00:00:00 2001 From: John Ogle Date: Mon, 21 Oct 2024 12:53:32 -0700 Subject: [PATCH] (wip) Run kodi in gamescope --- roles/kodi/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/roles/kodi/default.nix b/roles/kodi/default.nix index 0eed6a9..fbfc0db 100644 --- a/roles/kodi/default.nix +++ b/roles/kodi/default.nix @@ -38,7 +38,18 @@ in (mkIf cfg.wayland { cage = mkIf cfg.wayland { user = "kodi"; - program = "${kodiPkg}/bin/kodi-standalone"; + #program = "gamescope -f --hdr-enabled ${kodiPkg}/bin/kodi-standalone"; + program = + let + kodiGamescope = pkgs.writeShellApplication { + name = "kodi-gamescope"; + runtimeInputs = [ kodiPkg pkgs.gamescope ]; + text = '' + ${pkgs.gamescope}/bin/gamescope --hdr-enabled -f -- ${kodiPkg}/bin/kodi-standalone + ''; + }; + in + "${lib.getExe kodiGamescope}"; enable = true; }; xserver = {