From 30172c09873b7cf82894e7f072d7c50bdadd58bf Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Wed, 25 Jun 2025 10:39:14 -0500 Subject: [PATCH] add pinchflat to h001 --- hosts/h001/mods/default.nix | 1 + hosts/h001/mods/pinchflat.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 hosts/h001/mods/pinchflat.nix diff --git a/hosts/h001/mods/default.nix b/hosts/h001/mods/default.nix index dbd2ac6..670fd4b 100644 --- a/hosts/h001/mods/default.nix +++ b/hosts/h001/mods/default.nix @@ -6,5 +6,6 @@ ./adguardhome.nix ./nixarr.nix ./monitoring.nix + ./pinchflat.nix ]; } diff --git a/hosts/h001/mods/pinchflat.nix b/hosts/h001/mods/pinchflat.nix new file mode 100644 index 0000000..83638a3 --- /dev/null +++ b/hosts/h001/mods/pinchflat.nix @@ -0,0 +1,29 @@ +{ + ... +}: +{ + config = { + services.pinchflat = { + enable = true; + port = 8945; + mediaDir = "/drives/wd10/nixarr/media/library/youtube"; + }; + + # Adds the pinchflat user to the nixarr media group so we can write to the same media folder + systemd.services.pinchflat.serviceConfig.SupplementaryGroups = [ "media" ]; + systemd.tmpfiles.rules = [ + "d '/drives/wd10/nixarr/media/library/youtube' 0775 root media - -" + ]; + + # services.nginx = { + # virtualHosts = { + # "yt.joshuabell.xyz" = { + # locations."/" = { + # proxyWebsockets = true; + # proxyPass = "http://localhost:8945"; + # }; + # }; + # }; + # }; + }; +}