aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/arrakis/services.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-15 01:08:02 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-15 01:08:02 -0700
commita005ff1fa00c0314fb687120865020034ff3968f (patch)
tree801a37cd94990bfc6b54e0ac6da61ff0cb3e7e47 /hosts/arrakis/services.nix
parentdd645db231c291fffe99babdf32503e907fef154 (diff)
downloadnix-a005ff1fa00c0314fb687120865020034ff3968f.tar
nix-a005ff1fa00c0314fb687120865020034ff3968f.tar.gz
nix-a005ff1fa00c0314fb687120865020034ff3968f.tar.bz2
nix-a005ff1fa00c0314fb687120865020034ff3968f.tar.lz
nix-a005ff1fa00c0314fb687120865020034ff3968f.tar.xz
nix-a005ff1fa00c0314fb687120865020034ff3968f.tar.zst
nix-a005ff1fa00c0314fb687120865020034ff3968f.zip
Add *arr postInstall overlays to work with our custom systemd services
Diffstat (limited to '')
-rw-r--r--hosts/arrakis/services.nix34
1 files changed, 34 insertions, 0 deletions
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 = ''