syncoid on photoprism

This commit is contained in:
Ingolf Wagner 2024-05-11 00:20:55 +02:00
parent 2859b2747d
commit 424d9e4224
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 14 additions and 3 deletions

View file

@ -10,7 +10,6 @@
./hardware-configuration ./hardware-configuration
./disko-syncoid.nix
./packages.nix ./packages.nix
./network-wireguard.nix ./network-wireguard.nix
@ -45,9 +44,10 @@
#./home-display.nix #./home-display.nix
./rbackup.nix ./sync-rbackup.nix
./sync-torrent.nix ./sync-torrent.nix
./sync-script.nix ./sync-script.nix
./sync-syncoid.nix
./services-s3.nix ./services-s3.nix
./services-vault.nix ./services-vault.nix

View file

@ -1,5 +1,11 @@
{ ... }: { config, ... }:
{ {
sops.secrets.syncoid_private_key = {
key = "rsync_private_key";
owner = config.services.syncoid.user;
};
services.syncoid = { services.syncoid = {
enable = true; enable = true;
commands.service2 = { commands.service2 = {
@ -14,6 +20,11 @@
source = "zroot/postgresql"; source = "zroot/postgresql";
target = "zraid/mirror/postgresql"; # should not be created up front! target = "zraid/mirror/postgresql"; # should not be created up front!
}; };
commands.photoprism = {
sshKey = config.sops.secrets.syncoid_private_key.path;
source = "root@orbi:zmedia/photoprism";
target = "zraid/mirror/photoprism"; # should not be created up front!
};
commonArgs = [ commonArgs = [
# Does not create new snapshot, only transfers existing # Does not create new snapshot, only transfers existing
"--no-sync-snap" "--no-sync-snap"