feat(cerithium-telescopium): tv configs, prevent sleep, kodi plugins

This commit is contained in:
Malte Tammena 2023-10-26 19:43:58 +02:00
parent 26081d759a
commit d58287e2b0

View file

@ -11,14 +11,54 @@
users.extraUsers.kodi.isNormalUser = true;
services.logind.extraConfig = "IdleAction=ignore";
services.xserver.enable = true;
services.xserver.desktopManager.kodi.enable = true;
services.xserver.desktopManager.kodi.package = pkgs.kodi.passthru.withPackages (kodiPkgs:
services.xserver.displayManager.setupCommands = ''
/run/current-system/sw/bin/xset -dpms
/run/current-system/sw/bin/xset s off
'';
services.xserver.desktopManager.kodi.package = let
REpo-AiO = pkgs.fetchFromGitHub {
owner = "Collabsvito";
repo = "REpo-AiO";
rev = "c88a6de";
hash = "sha256-3FeMPAMXvVwbQXmjz6HYo5QAbrI4x3mkVNTLIco56K4=";
};
rtlGroupPlugin = pkgs.kodiPackages.buildKodiAddon rec {
pname = "rtl+";
namespace = "plugin.video.rtlgroup.de";
version = "1.1.6";
src = pkgs.fetchzip {
url = "file://${REpo-AiO}/MATRIX/${namespace}/${namespace}-${version}+matrix.1.zip";
hash = "sha256-tknTHae9dRQ1oO8rtgqSzxC7DzbVHa2VhbddWBqNVOI=";
};
patchPhase = ''
sed 's/Cryptodome/Crypto/g' -i resources/lib/common.py
'';
};
netflixPlugin = pkgs.kodiPackages.netflix.overrideAttrs rec {
version = "1.22.3";
src = pkgs.fetchFromGitHub {
owner = "CastagnaIT";
repo = "plugin.video.netflix";
rev = "v${version}";
sha256 = "sha256-8NGj8n1p8euqYYdPDSeFh2ZE9lly5ThSmg69yXY3Te8=";
};
};
in
pkgs.kodi.passthru.withPackages (kodiPkgs:
with kodiPkgs; [
# netflix
youtube
inputstream-adaptive
libretro
rtlGroupPlugin
netflixPlugin
joystick
# Amazon VOD
# Arte Mediathek
# Disney+