diff --git a/hosts/cerithium-telescopium.nix b/hosts/cerithium-telescopium.nix index e295dea..5b4bfa7 100644 --- a/hosts/cerithium-telescopium.nix +++ b/hosts/cerithium-telescopium.nix @@ -11,22 +11,62 @@ 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: - with kodiPkgs; [ - # netflix - youtube - inputstream-adaptive - libretro - # Amazon VOD - # Arte Mediathek - # Disney+ - # media.ccc.de - # RocketBeansTV - # twitch - # ZDF Mediathek - ]); + 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; [ + youtube + inputstream-adaptive + rtlGroupPlugin + netflixPlugin + joystick + # Amazon VOD + # Arte Mediathek + # Disney+ + # media.ccc.de + # RocketBeansTV + # twitch + # ZDF Mediathek + ]); services.xserver.displayManager.autoLogin.enable = true; services.xserver.displayManager.autoLogin.user = "kodi";