splitted configs in even more files

This commit is contained in:
chloe 2024-07-15 16:27:23 +02:00
parent 4c19ad042f
commit fb2934c4c7
14 changed files with 371 additions and 121 deletions

View file

@ -1,4 +1,9 @@
{ pkgs }:
{ pkgs, lib }:
with lib;
let
cfg = config.arrSuite;
in
{
services.sonarr = {
enable = true;
@ -26,11 +31,29 @@
enable = true;
};
systemd.services.sonarrAnime = {
services.bazarr = {
enable = true;
openFirewall = true;
};
#TODO: create duplicated instances of Sonarr.
systemd.services."sonarrAnime" = {
enable = true;
description = "Duplicated Sonarr instance, for animes";
after = [
"syslog.target"
"network.target"
];
path = [ pkgs.sonarr ];
serviceConfig = {
ExecStart = "Sonarr -nobrowser -data=/var/lib/sonarrAnime";
Type = "simple";
User = "sonarr";
ExecStart = "${pkgs.sonarr}/bin/Sonarr -nobrowser -data=/var/lib/sonarrAnime";
TimeoutStopSec = "20";
KillMode = "process";
Restart = "on-failure";
};
wantedBy = [ "multi-user.target" ];
};
}