1

Add kopia service

This commit is contained in:
2023-11-19 17:40:43 +01:00
parent 77728d2574
commit f04fe3c980
2 changed files with 53 additions and 0 deletions

View File

@ -18,6 +18,7 @@
./services/gitea-runner.nix ./services/gitea-runner.nix
./services/homepage.nix ./services/homepage.nix
./services/immich.nix ./services/immich.nix
./services/kopia.nix
./services/memos.nix ./services/memos.nix
./services/nextcloud.nix ./services/nextcloud.nix
./services/nginx-proxy-manager.nix ./services/nginx-proxy-manager.nix

View File

@ -0,0 +1,52 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.kopia = {
image = "kopia/kopia:latest";
autoStart = true;
dependsOn = [];
ports = [
# "51515:51515"
];
volumes = [
"kopia_config:/app/config"
"kopia_cache:/app/cache"
"kopia_logs:/app/logs"
"kopia_temp:/tmp/shared"
"/media/synology-syncthing:/repository"
"nextcloud_data:/data/nextcloud:ro"
"immich_data:/data/immich:ro"
"gitea_data:/data/gitea:ro"
"memos_data:/data/memos:ro"
];
environment = {
USER = "christoph";
KOPIA_PASSWORD = "kopia";
};
entrypoint = "/bin/kopia";
cmd = [
"server"
"start"
"--disable-csrf-token-checks"
"--insecure"
"--address=0.0.0.0:51515"
"--server-username=christoph"
"--server-password=kopia"
];
extraOptions = [
"--net=behind-nginx"
];
};
}