Merge pull request #187344 from bachp/plex-bubblewrap
This commit is contained in:
commit
99bf46f5b2
2 changed files with 10 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
# The actual Plex package that we run is a FHS userenv of the "raw" package.
|
||||
{ stdenv
|
||||
, buildFHSUserEnv
|
||||
, buildFHSUserEnvBubblewrap
|
||||
, writeScript
|
||||
, plexRaw
|
||||
|
||||
|
@ -9,10 +9,16 @@
|
|||
, dataDir ? "/var/lib/plex"
|
||||
}:
|
||||
|
||||
buildFHSUserEnv {
|
||||
buildFHSUserEnvBubblewrap {
|
||||
name = "plexmediaserver";
|
||||
|
||||
inherit (plexRaw) meta;
|
||||
|
||||
# Plex does some magic to detect if it is already running.
|
||||
# The separate PID namespace somehow breaks this and Plex is thinking it's already
|
||||
# running and refuses to start.
|
||||
unsharePid = false;
|
||||
|
||||
# This script is run when we start our Plex binary
|
||||
runScript = writeScript "plex-run-script" ''
|
||||
#!${stdenv.shell}
|
||||
|
|
|
@ -9882,9 +9882,8 @@ with pkgs;
|
|||
inherit (callPackage ../servers/plik { })
|
||||
plik plikd;
|
||||
|
||||
plex = callPackage ../servers/plex {
|
||||
buildFHSUserEnv = buildFHSUserEnvBubblewrap;
|
||||
};
|
||||
plex = callPackage ../servers/plex { };
|
||||
|
||||
plexRaw = callPackage ../servers/plex/raw.nix { };
|
||||
|
||||
psitransfer = callPackage ../servers/psitransfer { };
|
||||
|
|
Loading…
Reference in a new issue