diff --git a/hosts/thegeneralist-central/plex/default.nix b/hosts/thegeneralist-central/plex/default.nix index a9fca15..bb77f22 100644 --- a/hosts/thegeneralist-central/plex/default.nix +++ b/hosts/thegeneralist-central/plex/default.nix @@ -23,32 +23,29 @@ let nativeBuildInputs = [ pkgs.dpkg ]; unpackPhase = '' - runHook preUnpack dpkg-deb -x $src . - runHook postUnpack ''; installPhase = '' - runHook preInstall - mkdir -p $out - cp -r usr/* $out/ - runHook postInstall - ''; - }; -in -{ - services.plex = { - enable = true; - package = plex; - # openFirewall = true; + mkdir -p $out + cp -r usr/* $out/ + + mkdir -p $out/bin + cat > $out/bin/plexmediaserver <