diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index 8f1c07d039..302508a4aa 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -1,3 +1,4 @@ args: { javaws-env = import ./javaws-env.nix args; + plex-pass = import ./plex-pass.nix args; } diff --git a/nix/pkgs/plex-pass.nix b/nix/pkgs/plex-pass.nix new file mode 100644 index 0000000000..e6d1e948f0 --- /dev/null +++ b/nix/pkgs/plex-pass.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: +(pkgs.plex.override { + plexRaw = (pkgs.plexRaw.overrideAttrs (oldAttrs: rec { + version = "1.19.3.2764-ef515a800"; + src = pkgs.fetchurl { + url = "https://downloads.plex.tv/plex-media-server-new/${version}/redhat/plexmediaserver-${version}.x86_64.rpm"; + sha256 = "1zdf8wsj7xh6sz8pr3byf0347dv56x633dmf6a6i7mv7kcm7wq45"; + }; + })); +}) diff --git a/ops/nixos/clouvider-fra01/default.nix b/ops/nixos/clouvider-fra01/default.nix index b13f8155a6..965943208f 100644 --- a/ops/nixos/clouvider-fra01/default.nix +++ b/ops/nixos/clouvider-fra01/default.nix @@ -137,5 +137,12 @@ in { } ]; + services.plex = { + enable = true; + dataDir = "/store/plex"; + openFirewall = true; + package = depot.nix.pkgs.plex-pass; + }; + system.stateVersion = "20.03"; }