clouvider-fra01: add Plex Pass media server.
This commit is contained in:
parent
79c7b70a96
commit
25956f7607
3 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
args: {
|
||||
javaws-env = import ./javaws-env.nix args;
|
||||
plex-pass = import ./plex-pass.nix args;
|
||||
}
|
||||
|
|
10
nix/pkgs/plex-pass.nix
Normal file
10
nix/pkgs/plex-pass.nix
Normal 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";
|
||||
};
|
||||
}));
|
||||
})
|
|
@ -137,5 +137,12 @@ in {
|
|||
}
|
||||
];
|
||||
|
||||
services.plex = {
|
||||
enable = true;
|
||||
dataDir = "/store/plex";
|
||||
openFirewall = true;
|
||||
package = depot.nix.pkgs.plex-pass;
|
||||
};
|
||||
|
||||
system.stateVersion = "20.03";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue