clouvider-fra01: add Plex Pass media server.

This commit is contained in:
Luke Granger-Brown 2020-05-06 10:02:00 +01:00
parent 79c7b70a96
commit 25956f7607
3 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,4 @@
args: { args: {
javaws-env = import ./javaws-env.nix args; javaws-env = import ./javaws-env.nix args;
plex-pass = import ./plex-pass.nix args;
} }

10
nix/pkgs/plex-pass.nix Normal file
View file

@ -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";
};
}));
})

View file

@ -137,5 +137,12 @@ in {
} }
]; ];
services.plex = {
enable = true;
dataDir = "/store/plex";
openFirewall = true;
package = depot.nix.pkgs.plex-pass;
};
system.stateVersion = "20.03"; system.stateVersion = "20.03";
} }