Feature: Sonarr Service

This commit is contained in:
marthsincemelee
2023-11-20 16:49:41 +01:00
parent c1ee956e02
commit c6763f4976
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ in
radarr.enable = true;
docker.enable = true;
readarr.enable = true;
sonarr.enable = true;
jellyfin.enable = true;
};
+26
View File
@@ -0,0 +1,26 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.sonarr;
# domain = config.networking.domain;
port = 8989;
in
{
options.my.profiles.sonarr = with lib; {
enable = mkEnableOption "sonarr for series management";
};
config = lib.mkIf cfg.enable {
services.sonarr = {
enable = true;
openFirewall = true;
};
my.profiles.prowlarr.enable = true;
systemd.services.sonarr = {
after = [ "network-online.target" ];
};
};
}