diff --git a/.vscode/settings.json b/.vscode/settings.json index 9df3475..09a003d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,7 @@ "autopull", "azuretools", "BANN", + "binhex", "brkubnet", "btop", "btrfs", @@ -50,6 +51,7 @@ "keygen", "KRNL", "libvirtd", + "localtime", "LOGG", "lsnew", "luks", @@ -70,12 +72,21 @@ "nvme", "oderwat", "pciutils", + "PGID", "pipewire", "pkgs", "plugdev", + "PRIVOXY", + "prowlarr", "proxychains", + "PUID", "pulseaudio", "pylance", + "qbit", + "qbittorrent", + "qbittorrentvpn", + "qbitvpn", + "radarr", "Redistributable", "ripgrep", "rtkit", @@ -83,6 +94,7 @@ "shellcheck", "smartd", "smartmontools", + "sonarr", "sshconfig", "substituters", "sysstat", @@ -91,6 +103,7 @@ "Tmpfs", "topgrade", "Toqozz", + "Torenting", "uaccess", "updatekeys", "usbguard", @@ -99,6 +112,7 @@ "usernamehw", "vfat", "virtualisation", + "WEBUI", "wireshark", "xhci", "yzhang", diff --git a/systems/jeeves/docker/default.nix b/systems/jeeves/docker/default.nix index acadc40..36914b9 100644 --- a/systems/jeeves/docker/default.nix +++ b/systems/jeeves/docker/default.nix @@ -1,5 +1,8 @@ { - imports = [ ./filebrowser.nix ]; + imports = [ + ./filebrowser.nix + ./internal.nix + ]; virtualisation.oci-containers.backend = "docker"; } diff --git a/systems/jeeves/docker/internal.nix b/systems/jeeves/docker/internal.nix new file mode 100644 index 0000000..a780c95 --- /dev/null +++ b/systems/jeeves/docker/internal.nix @@ -0,0 +1,93 @@ +{ + virtualisation.oci-containers.containers = { + qbit = { + image = "ghcr.io/linuxserver/qbittorrent"; + ports = [ + "6881:6881" + "6881:6881/udp" + "8082:8082" + "29432:29432" + ]; + volumes = [ + "/ZFS/Media/Docker/Docker/Storage/qbit:/config" + "/ZFS/Torenting/Qbit/:/data" + ]; + environment = { + PUID = "998"; + PGID = "100"; + TZ = "America/New_York"; + WEBUI_PORT = "8082"; + }; + autoStart = true; + }; + qbitvpn = { + image = "binhex/arch-qbittorrentvpn"; + ports = [ + "6882:6881" + "6882:6881/udp" + "8081:8081" + "8118:8118" + ]; + volumes = [ + "/ZFS/Media/Docker/Docker/Storage/qbitvpn:/config" + "/ZFS/Torenting/QbitVPN/:/data" + "/etc/localtime:/etc/localtime:ro" + ]; + environment = { + WEBUI_PORT = "8081"; + PUID = "998"; + PGID = "100"; + VPN_ENABLED = "yes"; + VPN_CLIENT = "openvpn"; + STRICT_PORT_FORWARD = "yes"; + ENABLE_PRIVOXY = "yes"; + LAN_NETWORK = "192.168.90.0/24"; + NAME_SERVERS = "192.168.90.0"; + UMASK = "000"; + DEBUG = "false"; + DELUGE_DAEMON_LOG_LEVEL = "debug"; + DELUGE_WEB_LOG_LEVEL = "debug"; + environmentFiles = [ "/ZFS/Media/Docker/Docker/jeeves/internal/qbitvpn.env" ]; + autoStart = true; + }; + }; + prowlarr = { + image = "ghcr.io/linuxserver/prowlarr"; + environment = { + PUID = "998"; + PGID = "100"; + TZ = "America/New_York"; + }; + volumes = [ "/ZFS/Media/Docker/Docker/Storage/prowlarr:/config" ]; + autoStart = true; + }; + radarr = { + image = "ghcr.io/linuxserver/radarr"; + environment = { + PUID = "998"; + PGID = "100"; + TZ = "America/New_York"; + }; + volumes = [ + "/ZFS/Media/Docker/Docker/Storage/radarr:/config" + "/ZFS/Storage/Plex/Movies:/movies" + "/ZFS/Torenting/QbitVPN:/data" + ]; + autoStart = true; + }; + sonarr = { + image = "ghcr.io/linuxserver/sonarr"; + environment = { + PUID = "998"; + PGID = "100"; + TZ = "America/New_York"; + }; + volumes = [ + "/ZFS/Media/Docker/Docker/Storage/sonarr:/config" + "/ZFS/Storage/Plex/TV:/tv" + "/ZFS/Torenting/QbitVPN:/data" + ]; + autoStart = true; + }; + }; +}