nixos-config/modules/arrstack/default.nix

83 lines
2.1 KiB
Nix
Raw Permalink Normal View History

2024-11-04 10:00:41 +01:00
{ config, ... }:
2023-04-29 20:33:25 +02:00
let
2024-11-04 10:00:41 +01:00
cfg = import /etc/nixos/modules/vars.nix;
autobrr_port = cfg.arrstack.autobrr.port;
2023-05-25 13:54:58 +02:00
bazarr_port = cfg.arrstack.bazarr.port;
jellyseerr_port = cfg.arrstack.jellyseerr.port;
lidarr_port = cfg.arrstack.lidarr.port;
2023-06-30 09:16:15 +02:00
prowlarr_port = cfg.arrstack.prowlarr.port;
2023-04-29 20:33:25 +02:00
radarr_port = cfg.arrstack.radarr.port;
sonarr_port = cfg.arrstack.sonarr.port;
tdarr_webport = cfg.arrstack.tdarr.webport;
tdarr_serverport = cfg.arrstack.tdarr.serverport;
2023-07-07 16:01:39 +02:00
whisparr_port = cfg.arrstack.whisparr.port;
2023-04-29 20:33:25 +02:00
sabnzbd_port = cfg.arrstack.sabnzbd.port;
outpost_port = cfg.authentik.outpostPort;
2023-04-29 20:33:25 +02:00
domain = "mc-fucker.cool";
in
{
2024-11-04 10:00:41 +01:00
users = {
groups.arr.gid = 1337;
users = {
mc-fucker.extraGroups = [ "arr" ];
arr = {
isSystemUser = true;
group = "arr";
uid = 1337;
};
};
};
2023-07-07 16:01:39 +02:00
networking.firewall.interfaces.podman0.allowedTCPPorts = [ 12421 28917 ];
networking.firewall.interfaces.podman0.allowedUDPPorts = [ 53 ];
2023-07-07 16:01:39 +02:00
2023-04-29 20:33:25 +02:00
#container config
#virtualisation.oci-containers.containers.tdarr = {
# image = "ghcr.io/haveagitgat/tdarr";
# environment = {
# TZ = "Europe/Berlin";
2024-11-04 10:00:41 +01:00
# PUID = toString config.users.users.arr.uid;
# PGID = toString config.users.groups.arr.gid;
# serverIP = "0.0.0.0";
# webUIPort = tdarr_webport;
# serverPort = tdarr_serverport;
# internalNode = "true";
# inContainer = "true";
# };
# ports = [
# "${tdarr_webport}:${tdarr_webport}"
# "${tdarr_serverport}:${tdarr_serverport}"
# ];
# volumes = [
# "/var/lib/tdarr/server:/app/server"
# "/var/lib/tdarr/configs:/app/configs"
# "/var/lib/tdarr/logs:/app/logs"
# "/mnt/mergerfs/media:/data"
# ];
# extraOptions = cfg.podman.extraOptions ++ [ "--device=/dev/dri:/dev/dri" ];
#};
2023-04-29 20:33:25 +02:00
#webserver config
2024-11-04 10:00:41 +01:00
imports = [
/etc/nixos/modules/nginx.nix
./autobrr.nix
./bazarr.nix
2025-11-10 14:18:35 +01:00
./calibre.nix
2024-11-04 10:00:41 +01:00
./crossseed.nix
./jellyseerr.nix
2025-11-10 14:18:35 +01:00
./lidarr.nix
./mediathekarr.nix
2024-11-04 10:00:41 +01:00
./prowlarr.nix
./qbittorrent.nix
./radarr.nix
./recyclarr.nix
./sabnzbd.nix
./sonarr.nix
./whisparr.nix
];
2023-04-29 20:33:25 +02:00
}
# vim: set et ts=2 sw=2 ai: