kodi
This commit is contained in:
parent
da39367c55
commit
3969f33f61
|
@ -12,16 +12,12 @@
|
||||||
visualization-spectrum
|
visualization-spectrum
|
||||||
]);
|
]);
|
||||||
|
|
||||||
gamescope-kodi = pkgs.writeShellScriptBin "gamescope-kodi" ''
|
kodiSessionFile =
|
||||||
gamescope --expose-wayland --hdr-enabled -- kodi --windowing=wayland
|
|
||||||
'';
|
|
||||||
|
|
||||||
gamescopeKodiSessionFile =
|
|
||||||
(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=${gamescope-kodi}/bin/gamescope-kodi
|
Exec=${kodiPackage}/bin/kodi --windowing=gbm
|
||||||
Type=Application
|
Type=Application
|
||||||
'')
|
'')
|
||||||
.overrideAttrs (_: {passthru.providedSessions = ["kodi"];});
|
.overrideAttrs (_: {passthru.providedSessions = ["kodi"];});
|
||||||
|
@ -30,14 +26,7 @@ in {
|
||||||
kodiPackage
|
kodiPackage
|
||||||
];
|
];
|
||||||
|
|
||||||
security.wrappers.gamescope = {
|
services.displayManager.sessionPackages = [kodiSessionFile];
|
||||||
owner = "root";
|
|
||||||
group = "root";
|
|
||||||
source = "${pkgs.gamescope}/bin/gamescope";
|
|
||||||
capabilities = "cap_sys_nice+pie";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.displayManager.sessionPackages = [gamescopeKodiSessionFile];
|
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue