feat: installed jackett

This commit is contained in:
Leyla Becker 2025-10-17 14:58:49 -05:00
parent e895fa5edd
commit 6afdcce951
5 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
lib,
config,
...
}: let
jackett_data_directory = "/var/lib/jackett/.config/Jackett";
in {
config = lib.mkIf (config.services.jackett.enable && config.host.impermanence.enable) {
assertions = [
{
assertion = config.services.jackett.dataDir == jackett_data_directory;
message = "jackett data directory does not match persistence";
}
];
environment.persistence."/persist/system/root" = {
directories = [
{
directory = jackett_data_directory;
user = "jackett";
group = "jackett";
}
];
};
};
}