switch back to x11 kodi
This commit is contained in:
parent
72bb4c3bde
commit
07bef01fed
|
@ -11,37 +11,17 @@
|
||||||
visualization-starburst
|
visualization-starburst
|
||||||
visualization-spectrum
|
visualization-spectrum
|
||||||
]);
|
]);
|
||||||
|
|
||||||
kodi-gamescope = pkgs.writeShellScriptBin "kodi-gamescope" ''
|
|
||||||
gamescope --expose-wayland --hdr-enabled -- ${kodiPackage}/bin/kodi $@
|
|
||||||
'';
|
|
||||||
|
|
||||||
kodiSessionFile =
|
|
||||||
(pkgs.writeTextDir "share/wayland-sessions/kodi.desktop" ''
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=Kodi
|
|
||||||
Comment=Kodi
|
|
||||||
Exec=${kodi-gamescope}/bin/kodi-gamescope
|
|
||||||
Type=Application
|
|
||||||
'')
|
|
||||||
.overrideAttrs (_: {passthru.providedSessions = ["kodi"];});
|
|
||||||
in {
|
in {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
kodiPackage
|
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 = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
desktopManager.kodi = {
|
||||||
|
enable = true;
|
||||||
|
package = kodiPackage;
|
||||||
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Section "OutputClass"
|
Section "OutputClass"
|
||||||
Identifier "vc4"
|
Identifier "vc4"
|
||||||
|
|
|
@ -54,11 +54,13 @@ in {
|
||||||
services.displayManager = {
|
services.displayManager = {
|
||||||
defaultSession = "kodi";
|
defaultSession = "kodi";
|
||||||
autoLogin = {
|
autoLogin = {
|
||||||
enable = true;
|
enable = false;
|
||||||
user = "chaos";
|
user = "chaos";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.chaos
|
||||||
|
|
||||||
services.xserver.displayManager.gdm.autoLogin.delay = 5;
|
services.xserver.displayManager.gdm.autoLogin.delay = 5;
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
Loading…
Reference in a new issue