Compare commits

..
5 Commits
Author SHA1 Message Date
christoph 4a75307017 Add formula10 service 2024-03-09 17:26:56 +01:00
christoph 91c1bf7d1f Update immich service 2024-03-09 17:26:49 +01:00
christoph d73a0a3c46 Disable memos service 2024-03-09 17:26:45 +01:00
christoph 27e0a5f76e Expose homeassistant port for outside access 2024-03-09 17:26:35 +01:00
christoph 1232b67b67 Update download paths 2024-03-09 17:26:23 +01:00
8 changed files with 53 additions and 34 deletions
+20 -1
View File
@@ -18,6 +18,7 @@
# My own stuff # My own stuff
./services/airsignal.nix ./services/airsignal.nix
./services/heidi.nix ./services/heidi.nix
./services/formula10.nix
# General # General
./services/authelia.nix ./services/authelia.nix
@@ -27,7 +28,6 @@
./services/homepage.nix ./services/homepage.nix
./services/immich.nix ./services/immich.nix
./services/kopia.nix ./services/kopia.nix
./services/memos.nix
./services/nextcloud.nix ./services/nextcloud.nix
./services/nginx-proxy-manager.nix ./services/nginx-proxy-manager.nix
./services/portainer.nix ./services/portainer.nix
@@ -103,6 +103,8 @@
defaultGateway = "192.168.86.5"; defaultGateway = "192.168.86.5";
nameservers = [ nameservers = [
"127.0.0.1" "127.0.0.1"
# "192.168.86.25"
# "8.8.8.8"
]; ];
}; };
@@ -120,6 +122,10 @@
# crash the whole service. # crash the whole service.
check=$(${dockercli} network ls | grep ${network} || true) check=$(${dockercli} network ls | grep ${network} || true)
if [ -z "$check" ]; then if [ -z "$check" ]; then
# TODO: Disable IP masquerading to show individual containers in AdGuard/Pi-Hole
# - Disabling this prevents containers from having internet connection. DNS issue?
# ${dockercli} network create -o "com.docker.network.bridge.enable_ip_masquerade"="false" ${network}
${dockercli} network create ${network} ${dockercli} network create ${network}
else else
echo "${network} already exists in docker" echo "${network} already exists in docker"
@@ -220,6 +226,17 @@
# enable = true; # enable = true;
# setSocketVariable = true; # setSocketVariable = true;
# }; # };
daemon.settings = {
dns = [
# TODO: Does this circumvent my DNS for each container?
# It might improve gitea actions though...
"8.8.8.8"
# TODO: Might prevent containers from having DNS?
# "127.0.0.1"
# "192.168.86.25"
];
};
}; };
oci-containers.backend = "docker"; oci-containers.backend = "docker";
}; };
@@ -272,6 +289,8 @@
ntp.enable = true; ntp.enable = true;
qemuGuest.enable = true; qemuGuest.enable = true;
# TODO: Might prevent containers from having working DNS
# resolved.fallbackDns = ["8.8.8.8"];
}; };
networking.firewall = { networking.firewall = {
+1 -1
View File
@@ -17,7 +17,7 @@
]; ];
volumes = [ volumes = [
"/media/Stash-Usenet/metube:/downloads" "/media/Stash-Video:/downloads"
]; ];
environment = { environment = {
+1 -1
View File
@@ -17,7 +17,7 @@
]; ];
volumes = [ volumes = [
"/media/Stash-Usenet:/downloads" "/media/Stash-Video:/downloads"
"box-sabnzbd_config:/config" "box-sabnzbd_config:/config"
]; ];
+28
View File
@@ -0,0 +1,28 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.formula10 = {
image = "gitea.vps.chriphost.de/christoph/formula10:latest";
autoStart = true;
dependsOn = [];
ports = [
"55555:5000"
];
volumes = [
"formula10_data:/app/instance"
];
environment = {};
extraOptions = [
"--init" # Make an init process take up PID 1, to make python receive the SIGTERM
"--net=behind-nginx"
];
};
}
+1 -1
View File
@@ -11,7 +11,7 @@
dependsOn = []; dependsOn = [];
ports = [ ports = [
# "8123:8123" # WebUI "8123:8123" # WebUI
]; ];
volumes = [ volumes = [
+1 -3
View File
@@ -5,7 +5,7 @@
... ...
}: { }: {
virtualisation.oci-containers.containers.immich-database = { virtualisation.oci-containers.containers.immich-database = {
image = "postgres:15"; image = "tensorchord/pgvecto-rs:pg15-v0.2.0";
autoStart = true; autoStart = true;
dependsOn = []; dependsOn = [];
@@ -85,8 +85,6 @@
MACHINE_LEARNING_WORKERS = "1"; MACHINE_LEARNING_WORKERS = "1";
MACHINE_LEARNING_WORKER_TIMEOUT = "120"; MACHINE_LEARNING_WORKER_TIMEOUT = "120";
DISABLE_MACHINE_LEARNING = "false";
DISABLE_TYPESENSE = "false";
}; };
extraOptions = [ extraOptions = [
+1
View File
@@ -36,6 +36,7 @@
"box-stash_generated:/data/box-stash_generated:ro" "box-stash_generated:/data/box-stash_generated:ro"
"box-stash_metadata:/data/box-stash_metadata:ro" "box-stash_metadata:/data/box-stash_metadata:ro"
"fileflows_config:/data/fileflows_config:ro" "fileflows_config:/data/fileflows_config:ro"
"formula10_data:/data/formula10_data:ro"
"gitea-db_data:/data/gitea-db_data:ro" "gitea-db_data:/data/gitea-db_data:ro"
"gitea-runner_config:/data/gitea-runner_config:ro" "gitea-runner_config:/data/gitea-runner_config:ro"
"gitea-runner_data:/data/gitea-runner_data:ro" "gitea-runner_data:/data/gitea-runner_data:ro"
-27
View File
@@ -1,27 +0,0 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.memos = {
image = "ghcr.io/usememos/memos:latest";
autoStart = true;
dependsOn = [];
ports = [
"5230:5230"
];
volumes = [
"memos_data:/var/opt/memos"
];
environment = {};
extraOptions = [
"--net=behind-nginx"
];
};
}