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 = {