From 106f39a1402c3fcf766db029ceb0fae35dc65d73 Mon Sep 17 00:00:00 2001 From: jasmine Date: Wed, 16 Oct 2024 07:12:04 +0800 Subject: [PATCH] fix persistence --- nixos/viridian/services/borgbackup/default.nix | 1 - nixos/viridian/services/wiki-js/default.nix | 11 +++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/viridian/services/borgbackup/default.nix b/nixos/viridian/services/borgbackup/default.nix index 18f4f2f..6e8df36 100644 --- a/nixos/viridian/services/borgbackup/default.nix +++ b/nixos/viridian/services/borgbackup/default.nix @@ -18,7 +18,6 @@ "/var/lib/redis-immich" "/var/lib/redis-paperless" "/var/lib/traefik" - "/var/lib/wiki-js" # Multimedia "/srv/multimedia/containers/jellyfin" "/srv/multimedia/containers/lidarr" diff --git a/nixos/viridian/services/wiki-js/default.nix b/nixos/viridian/services/wiki-js/default.nix index 45c4727..f6453f6 100644 --- a/nixos/viridian/services/wiki-js/default.nix +++ b/nixos/viridian/services/wiki-js/default.nix @@ -26,7 +26,7 @@ services.traefik.dynamicConfigOptions.http.routers = { wiki-js = { - rule = "Host(`wiki.sajkbd.io`)"; + rule = "Host(`docs.sajkbd.io`)"; entryPoints = [ "websecure" ]; @@ -44,5 +44,12 @@ ]; }; - environment.persistence."/persist".directories = ["/var/lib/wiki-js"]; + environment.persistence."/persist" = { + directories = [ + { + directory = "/var/lib/private"; + mode = "0700"; + } + ]; + }; }