]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo/sanoid.nix
nix: fix PASSWORD_STORE_DIR
[sourcephile-nix.git] / machines / losurdo / sanoid.nix
1 { pkgs, lib, config, machineName, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 local = {
7 autosnap = true;
8 autoprune = true;
9 monthly = 3;
10 };
11 remote = {
12 autosnap = false;
13 autoprune = true;
14 monthly = 3;
15 };
16 };
17 extraArgs = [
18 "--verbose"
19 #"--debug"
20 ];
21 datasets = {
22 "${machineName}/home/julm/work" = {
23 use_template = [ "local" ];
24 daily = 31;
25 };
26 "${machineName}/var/postgresql" = {
27 use_template = [ "local" ];
28 daily = 31;
29 };
30 "${machineName}/backup/mermet/var/git" = {
31 use_template = [ "remote" ];
32 daily = 7;
33 };
34 "${machineName}/backup/mermet/var/mail" = {
35 use_template = [ "remote" ];
36 hourly = 12;
37 daily = 7;
38 };
39 "${machineName}/backup/mermet/var/public-inbox" = {
40 use_template = [ "remote" ];
41 daily = 7;
42 };
43 "${machineName}/backup/mermet/var/redis" = {
44 use_template = [ "remote" ];
45 hourly = 1;
46 daily = 7;
47 };
48 "${machineName}/backup/mermet/var/www" = {
49 use_template = [ "remote" ];
50 daily = 7;
51 };
52 "${machineName}/backup/mermet/home/julm/mail" = {
53 use_template = [ "remote" ];
54 hourly = 12;
55 daily = 7;
56 };
57 "${machineName}/backup/mermet/home/julm/log" = {
58 use_template = [ "remote" ];
59 hourly = 12;
60 daily = 7;
61 monthly = 1;
62 };
63 };
64 };
65 }