Commit 31b1f4d329b7

Vincent Demeester <vincent@sbr.pm>
2025-12-20 22:48:00
feat(aion): add Lidarr and Audiobookshelf services
- Prepare music metadata management with Lidarr on aion - Prepare audiobook streaming capability with Audiobookshelf - Continue audio services migration infrastructure setup Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 37e69bb
Changed files (1)
systems
systems/aion/extra.nix
@@ -6,6 +6,9 @@
   ...
 }:
 let
+  # Service defaults for media/homelab services
+  serviceDefaults = libx.mkServiceDefaults { };
+
   # Common rsync configuration for rhea backups
   rheaBackupDefaults = {
     source = {
@@ -24,6 +27,14 @@ let
       "-o StrictHostKeyChecking=accept-new"
     ];
   };
+
+  # Exportarr services configuration (data-driven approach)
+  exportarrServices = {
+    lidarr = {
+      port = 9709;
+      servicePort = 8686;
+    };
+  };
 in
 {
   imports = [
@@ -57,6 +68,17 @@ in
       };
     };
 
+    audiobookshelf = serviceDefaults // {
+      enable = false;
+      port = 13378;
+      host = "0.0.0.0";
+    };
+
+    lidarr = serviceDefaults // {
+      enable = false;
+      settings.server.port = exportarrServices.lidarr.servicePort;
+    };
+
     rsync-replica = {
       enable = true;
       jobs = {