]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo/syncoid.nix
nix: fix /etc/ld-nix.so.preload sharing
[sourcephile-nix.git] / machines / losurdo / syncoid.nix
1 { pkgs, lib, config, machineName, ... }:
2 let inherit (config.security) gnupg; in
3 {
4 services.syncoid = {
5 enable = true;
6 interval = "*-*-* *:15:00";
7 sshKey = gnupg.secrets."/root/.ssh/id_ed25519".path;
8 commonArgs = [
9 "--no-sync-snap"
10 "--create-bookmark"
11 ];
12 commands = {
13 "${machineName}/home/julm/work" = {
14 sendOptions = "raw";
15 target = "root@mermet.sourcephile.fr:rpool/backup/${machineName}/home/julm/work";
16 };
17 "${machineName}/var/postgresql" = {
18 sendOptions = "raw";
19 target = "root@mermet.sourcephile.fr:rpool/backup/${machineName}/var/postgresql";
20 };
21 "root@mermet.sourcephile.fr:rpool/var/mail" = {
22 sendOptions = "raw";
23 target = "${machineName}/backup/mermet/var/mail";
24 };
25 "root@mermet.sourcephile.fr:rpool/var/public-inbox" = {
26 sendOptions = "raw";
27 target = "${machineName}/backup/mermet/var/public-inbox";
28 };
29 "root@mermet.sourcephile.fr:rpool/var/www" = {
30 sendOptions = "raw";
31 target = "${machineName}/backup/mermet/var/www";
32 };
33 "root@mermet.sourcephile.fr:rpool/var/git" = {
34 sendOptions = "raw";
35 target = "${machineName}/backup/mermet/var/git";
36 };
37 "root@mermet.sourcephile.fr:rpool/var/redis" = {
38 sendOptions = "raw";
39 target = "${machineName}/backup/mermet/var/redis";
40 };
41 "root@mermet.sourcephile.fr:rpool/home/julm/mail" = {
42 sendOptions = "raw";
43 target = "${machineName}/backup/mermet/home/julm/mail";
44 };
45 "root@mermet.sourcephile.fr:rpool/home/julm/log" = {
46 sendOptions = "raw";
47 target = "${machineName}/backup/mermet/home/julm/log";
48 };
49 };
50 };
51 }