kodi back in gamescope
This commit is contained in:
parent
90243b9fdd
commit
53e6c8be19
|
@ -1,5 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
kodiPackage = pkgs.kodi-gbm.withPackages (kodiPkgs:
|
||||
kodiPackage = pkgs.kodi-wayland.withPackages (kodiPkgs:
|
||||
with kodiPkgs; [
|
||||
pvr-iptvsimple
|
||||
inputstreamhelper
|
||||
|
@ -12,22 +12,34 @@
|
|||
visualization-spectrum
|
||||
]);
|
||||
|
||||
kodi-gamescope = pkgs.writeShellScriptBin "kodi-gamescope" ''
|
||||
gamescope --expose-wayland --enable-hdr -- ${kodiPackage}/bin/kodi $@
|
||||
'';
|
||||
|
||||
kodiSessionFile =
|
||||
(pkgs.writeTextDir "share/wayland-sessions/kodi.desktop" ''
|
||||
[Desktop Entry]
|
||||
Name=Kodi
|
||||
Comment=Kodi
|
||||
Exec=${kodiPackage}/bin/kodi --windowing=gbm
|
||||
Exec=${kodi-gamescope}/bin/kodi-gamescope
|
||||
Type=Application
|
||||
'')
|
||||
.overrideAttrs (_: {passthru.providedSessions = ["kodi"];});
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
kodiPackage
|
||||
kodi-gamescope
|
||||
];
|
||||
|
||||
services.displayManager.sessionPackages = [kodiSessionFile];
|
||||
|
||||
security.wrappers.gamescope = {
|
||||
owner = "root";
|
||||
group = "root";
|
||||
source = "${pkgs.gamescope}/bin/gamescope";
|
||||
capabilities = "cap_sys_nice+pie";
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue