nixos: services: servarr: migrate jackett

This commit is contained in:
Bruno BELANYI 2025-03-31 11:27:18 +00:00
parent f825d047b5
commit 950cf4dd05
4 changed files with 38 additions and 22 deletions

View file

@ -0,0 +1,33 @@
{ config, lib, ... }:
let
cfg = config.my.services.servarr.jackett;
in
{
options.my.services.servarr.jackett = with lib; {
enable = lib.mkEnableOption "Jackett" // {
default = config.my.services.servarr.enableAll;
};
};
config = lib.mkIf cfg.enable {
services.jackett = {
enable = true;
};
# Jackett wants to eat *all* my RAM if left to its own devices
systemd.services.jackett = {
serviceConfig = {
MemoryHigh = "15%";
MemoryMax = "25%";
};
};
my.services.nginx.virtualHosts = {
jackett = {
port = 9117;
};
};
# Jackett does not log authentication failures...
};
}