Feature: Sonarr Service
This commit is contained in:
@@ -15,6 +15,7 @@ in
|
||||
radarr.enable = true;
|
||||
docker.enable = true;
|
||||
readarr.enable = true;
|
||||
sonarr.enable = true;
|
||||
jellyfin.enable = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user