2024-09-04 20:25:07 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-09-04 19:54:16 +01:00
|
|
|
kodiPackage = inputs.nixpkgs-kodi-inputstream-adaptive-fork.legacyPackages.${pkgs.system}.kodi-wayland.withPackages (kodiPkgs:
|
2024-09-03 19:22:10 +01:00
|
|
|
with kodiPkgs; [
|
|
|
|
pvr-iptvsimple
|
|
|
|
inputstreamhelper
|
2024-09-04 15:56:09 +01:00
|
|
|
inputstream-adaptive
|
2024-09-03 19:22:10 +01:00
|
|
|
inputstream-rtmp
|
|
|
|
visualization-projectm
|
|
|
|
visualization-waveform
|
|
|
|
visualization-matrix
|
|
|
|
visualization-starburst
|
|
|
|
visualization-spectrum
|
|
|
|
]);
|
|
|
|
in {
|
|
|
|
environment.systemPackages = [
|
|
|
|
kodiPackage
|
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
2024-09-04 14:39:57 +01:00
|
|
|
desktopManager.kodi = {
|
|
|
|
enable = true;
|
|
|
|
package = kodiPackage;
|
|
|
|
};
|
2024-09-03 19:22:10 +01:00
|
|
|
extraConfig = ''
|
|
|
|
Section "OutputClass"
|
|
|
|
Identifier "vc4"
|
|
|
|
MatchDriver "vc4"
|
|
|
|
Driver "modesetting"
|
|
|
|
Option "PrimaryGPU" "true"
|
|
|
|
EndSection
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [8080];
|
|
|
|
allowedUDPPorts = [8080];
|
|
|
|
};
|
|
|
|
|
2024-09-04 13:45:56 +01:00
|
|
|
home-manager.users.chaos = let
|
|
|
|
widevine = pkgs.widevine-aarch64-4k;
|
|
|
|
in {
|
|
|
|
home.file.widevine-lib = {
|
|
|
|
source = "${widevine}/share/google/chrome/WidevineCdm/_platform_specific/linux_arm64/libwidevinecdm.so";
|
|
|
|
target = ".kodi/cdm/libwidevinecdm.so";
|
|
|
|
};
|
|
|
|
home.file.widevine-manifest = {
|
|
|
|
source = "${widevine}/share/google/chrome/WidevineCdm/manifest.json";
|
|
|
|
target = ".kodi/cdm/manifest.json";
|
|
|
|
};
|
2024-09-03 19:22:10 +01:00
|
|
|
};
|
|
|
|
}
|