From 4eb04daa5d513d4cb1f6bcaefd8329e5f2cdc9d7 Mon Sep 17 00:00:00 2001 From: chaos Date: Fri, 13 Sep 2024 15:50:19 +0100 Subject: [PATCH] tvheadend --- hosts/raspberry-pi5/profiles/kodi.nix | 7 ++----- hosts/raspberry-pi5/profiles/tvheadend.nix | 3 +++ hosts/raspberry-pi5/raspberry-pi5.nix | 3 ++- overlay/widevine-aarch64/default.nix | 1 - 4 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 hosts/raspberry-pi5/profiles/tvheadend.nix diff --git a/hosts/raspberry-pi5/profiles/kodi.nix b/hosts/raspberry-pi5/profiles/kodi.nix index 404dfc3..a057f55 100644 --- a/hosts/raspberry-pi5/profiles/kodi.nix +++ b/hosts/raspberry-pi5/profiles/kodi.nix @@ -33,16 +33,13 @@ ]); in { nixpkgs.overlays = [ - (final: _prev: { + (_final: _prev: { #ffmpeg = final.ffmpeg-pi; }) ]; hardware.graphics.package = pkgs.mesa.overrideAttrs (oA: { - patches = - oA.patches - ++ [ - ]; + inherit (oA) patches; }); environment.systemPackages = [ diff --git a/hosts/raspberry-pi5/profiles/tvheadend.nix b/hosts/raspberry-pi5/profiles/tvheadend.nix new file mode 100644 index 0000000..5960a1f --- /dev/null +++ b/hosts/raspberry-pi5/profiles/tvheadend.nix @@ -0,0 +1,3 @@ +{...}: { + services.tvheadend.enable = true; +} diff --git a/hosts/raspberry-pi5/raspberry-pi5.nix b/hosts/raspberry-pi5/raspberry-pi5.nix index 9387774..120d3f1 100644 --- a/hosts/raspberry-pi5/raspberry-pi5.nix +++ b/hosts/raspberry-pi5/raspberry-pi5.nix @@ -35,6 +35,7 @@ in { (with tree.hosts.raspberry-pi5.profiles; [ kodi + tvheadend ]) (forEach [ @@ -64,7 +65,7 @@ in { allowPing = true; checkReversePath = "loose"; - allowedTCPPorts = [22]; + allowedTCPPorts = [22 9981 9982]; }; networking.nat = { diff --git a/overlay/widevine-aarch64/default.nix b/overlay/widevine-aarch64/default.nix index 2dcb439..e1a600f 100644 --- a/overlay/widevine-aarch64/default.nix +++ b/overlay/widevine-aarch64/default.nix @@ -8,7 +8,6 @@ pageSize ? 4, }: let lacrosVersion = "128.0.6613.119"; - widevineVersion = "4.10.2662.3"; in stdenv.mkDerivation { pname = "widevine-aarch64-${toString pageSize}k";