From 07c949f7ffc32adc1cf98d7f7a6ab88148e6a68c Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Mon, 9 Mar 2026 22:30:42 +0100 Subject: [PATCH] fix plex --- hosts/thegeneralist-central/plex/default.nix | 82 +++++++++++++++----- modules/linux/tailscale.nix | 2 +- 2 files changed, 63 insertions(+), 21 deletions(-) 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 <