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