syncoid on photoprism
This commit is contained in:
parent
2859b2747d
commit
424d9e4224
3 changed files with 14 additions and 3 deletions
|
@ -10,7 +10,6 @@
|
|||
|
||||
./hardware-configuration
|
||||
|
||||
./disko-syncoid.nix
|
||||
./packages.nix
|
||||
|
||||
./network-wireguard.nix
|
||||
|
@ -45,9 +44,10 @@
|
|||
|
||||
#./home-display.nix
|
||||
|
||||
./rbackup.nix
|
||||
./sync-rbackup.nix
|
||||
./sync-torrent.nix
|
||||
./sync-script.nix
|
||||
./sync-syncoid.nix
|
||||
|
||||
./services-s3.nix
|
||||
./services-vault.nix
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
|
||||
sops.secrets.syncoid_private_key = {
|
||||
key = "rsync_private_key";
|
||||
owner = config.services.syncoid.user;
|
||||
};
|
||||
|
||||
services.syncoid = {
|
||||
enable = true;
|
||||
commands.service2 = {
|
||||
|
@ -14,6 +20,11 @@
|
|||
source = "zroot/postgresql";
|
||||
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 = [
|
||||
# Does not create new snapshot, only transfers existing
|
||||
"--no-sync-snap"
|
Loading…
Reference in a new issue