containers: add prowlarr

This commit is contained in:
Veneficium 2024-12-29 22:31:32 +01:00
parent 856bcb34ee
commit d4c3cf917d
2 changed files with 42 additions and 0 deletions

View file

@ -3,6 +3,7 @@
imports = [ imports = [
./jellyfin.nix ./jellyfin.nix
./qbittorrent.nix ./qbittorrent.nix
./prowlarr.nix
./lidarr.nix ./lidarr.nix
]; ];
@ -10,6 +11,7 @@
jellyfin.enable = lib.mkDefault false; jellyfin.enable = lib.mkDefault false;
qbittorrent.enable = lib.mkDefault false; qbittorrent.enable = lib.mkDefault false;
lidarr.enable = lib.mkDefault false; lidarr.enable = lib.mkDefault false;
prowlarr.enable = lib.mkDefault false;
}; };
} }

40
containers/prowlarr.nix Normal file
View file

@ -0,0 +1,40 @@
{
config,
lib,
pkgs,
...
}:
{
options.settings.containers.prowlarr = {
enable = lib.mkEnableOption "enable prowlarr arion container";
};
config = lib.mkIf config.settings.containers.prowlarr.enable {
virtualisation.arion.projects.prowlarr = {
settings = {
project.name = "prowlarr";
services.prowlarr = {
service.useHostStore = true;
nixos.useSystemd = true;
nixos.configuration =
{ lib, ... }:
{
boot.isContainer = true;
boot.tmp.useTmpfs = true;
networking.useDHCP = false;
services.nscd.enable = false;
system.nssModules = lib.mkForce [ ];
services.prowlarr.enable = true;
services.prowlarr.openFirewall = true;
};
service.ports = [ "9696:9696" ];
service.volumes = [
"/config/prowlarr:/config"
"/data:/data"
];
};
};
};
};
}