Merge branch 'server'

This commit is contained in:
Dmitriy Kholkin 2022-08-05 21:11:17 +03:00
commit 8577361af0
5 changed files with 31 additions and 6 deletions

View File

@ -13,6 +13,7 @@
seafile
vaultwarden
battery-historian
media-stack
];

View File

@ -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";
};
}

View File

@ -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";
};

View File

@ -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
'';
};
}
}

View File

@ -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 ];
}