From a005ff1fa00c0314fb687120865020034ff3968f Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Tue, 15 Oct 2024 01:08:02 -0700 Subject: Add *arr postInstall overlays to work with our custom systemd services --- hosts/arrakis/services.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/hosts/arrakis/services.nix b/hosts/arrakis/services.nix index fd25c63..22360b6 100644 --- a/hosts/arrakis/services.nix +++ b/hosts/arrakis/services.nix @@ -5,6 +5,40 @@ directory = * ''; + nixpkgs.overlays = [ (final: prev: { + + lidarr = prev.lidarr.overrideAttrs (old: { + postInstall = (old.postInstall or "") + '' + ${pkgs.systemd}/bin/systemctl restart lidarr.service + ''; + } ); + + prowlarr = prev.prowlarr.overrideAttrs (old: { + postInstall = (old.postInstall or "") + '' + ${pkgs.systemd}/bin/systemctl restart prowlarr.service + ''; + } ); + + radarr = prev.radarr.overrideAttrs (old: { + postInstall = (old.postInstall or "") + '' + ${pkgs.systemd}/bin/systemctl restart radarr.service + ''; + } ); + + readarr = prev.readarr.overrideAttrs (old: { + postInstall = (old.postInstall or "") + '' + ${pkgs.systemd}/bin/systemctl restart readarr.service + ''; + } ); + + sonarr = prev.sonarr.overrideAttrs (old: { + postInstall = (old.postInstall or "") + '' + ${pkgs.systemd}/bin/systemctl restart sonarr.service + ''; + } ); + + } ) ]; + security.acme = { acceptTerms = true; certs."arrakis.bitgnome.net".postRun = '' -- cgit v1.2.3