diff --git a/machines/NixOS-CT/default.nix b/machines/NixOS-CT/default.nix index 89a3ad8..d0969ef 100644 --- a/machines/NixOS-CT/default.nix +++ b/machines/NixOS-CT/default.nix @@ -13,6 +13,7 @@ seafile vaultwarden + battery-historian media-stack ]; diff --git a/profiles/servers/battery-historian.nix b/profiles/servers/battery-historian.nix new file mode 100644 index 0000000..de5fda6 --- /dev/null +++ b/profiles/servers/battery-historian.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: { + virtualisation.oci-containers.containers.battery-historian = { + autoStart = true; + ports = [ "127.0.0.1:9999:9999" ]; + image = "gcr.io/android-battery-historian/stable:3.0"; + }; +} \ No newline at end of file diff --git a/profiles/servers/gitea.nix b/profiles/servers/gitea.nix index c57bf36..7950645 100644 --- a/profiles/servers/gitea.nix +++ b/profiles/servers/gitea.nix @@ -19,6 +19,14 @@ rootUrl = "https://code.ataraxiadev.com"; stateDir = "/gitea/data"; settings = { + attachment = { + MAX_SIZE = 100; + MAX_FILES = 10; + }; + "repository.upload" = { + FILE_MAX_SIZE = 100; + MAX_FILES = 10; + }; ui = { DEFAULT_THEME = "arc-green"; }; diff --git a/profiles/servers/media-stack/default.nix b/profiles/servers/media-stack/default.nix index 084a214..d7a047e 100644 --- a/profiles/servers/media-stack/default.nix +++ b/profiles/servers/media-stack/default.nix @@ -2,7 +2,7 @@ with config.virtualisation.oci-containers; { imports = [ ./bazarr.nix - ./botdarr.nix + # ./botdarr.nix ./caddy.nix ./jellyfin.nix ./kavita.nix @@ -12,7 +12,7 @@ with config.virtualisation.oci-containers; { ./prowlarr.nix ./qbittorrent.nix ./radarr.nix - ./shoko.nix + # ./shoko.nix ./sonarr.nix ]; @@ -39,8 +39,8 @@ with config.virtualisation.oci-containers; { serviceConfig.Type = "oneshot"; wantedBy = [ "${backend}-bazarr.service" - "${backend}-botdarr-matrix.service" - "${backend}-botdarr-telegram.service" + # "${backend}-botdarr-matrix.service" + # "${backend}-botdarr-telegram.service" "${backend}-jellyfin.service" "${backend}-kavita.service" "${backend}-lidarr.service" @@ -50,7 +50,7 @@ with config.virtualisation.oci-containers; { "${backend}-prowlarr.service" "${backend}-qbittorrent.service" "${backend}-radarr.service" - "${backend}-shokoserver.service" + # "${backend}-shokoserver.service" "${backend}-sonarr-anime.service" "${backend}-sonarr-tv.service" "${backend}-xray.service" @@ -61,4 +61,4 @@ with config.virtualisation.oci-containers; { exit 0 ''; }; -} \ No newline at end of file +} diff --git a/profiles/servers/nginx.nix b/profiles/servers/nginx.nix index 91798fe..ea48754 100644 --- a/profiles/servers/nginx.nix +++ b/profiles/servers/nginx.nix @@ -33,6 +33,7 @@ "nzbhydra.ataraxiadev.com" "kavita.ataraxiadev.com" "shoko.ataraxiadev.com" + "bathist.ataraxiadev.com" ]; }; }; @@ -168,6 +169,11 @@ proxyPass = "http://localhost:6000"; } // proxySettings; } // default; + "bathist.ataraxiadev.com" = { + locations."/" = { + proxyPass = "http://localhost:9999"; + } // proxySettings; + } // default; "file.ataraxiadev.com" = { locations."/" = { proxyPass = "http://localhost:8088"; @@ -224,5 +230,8 @@ group = config.services.nginx.group; }; + # Temp.py script + environment.systemPackages = with pkgs; [ python3 python3Packages.requests ]; + networking.firewall.allowedTCPPorts = [ 80 443 8448 ]; }