From 25956f76072a5e6235f27fd0100a1bdc301c830c Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 6 May 2020 10:02:00 +0100 Subject: [PATCH] clouvider-fra01: add Plex Pass media server. --- nix/pkgs/default.nix | 1 + nix/pkgs/plex-pass.nix | 10 ++++++++++ ops/nixos/clouvider-fra01/default.nix | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 nix/pkgs/plex-pass.nix 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"; }