]> Git — Sourcephile - sourcephile-nix.git/blob - machines/mermet/sanoid.nix
nix: disable fix for /etc/ld-nix.so.preload, too much rebuilds
[sourcephile-nix.git] / machines / mermet / sanoid.nix
1 { pkgs, lib, config, ... }:
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 "rpool/var/git" = {
23 use_template = [ "local" ];
24 daily = 7;
25 };
26 "rpool/var/mail" = {
27 use_template = [ "local" ];
28 hourly = 12;
29 daily = 7;
30 };
31 "rpool/var/public-inbox" = {
32 use_template = [ "local" ];
33 daily = 7;
34 };
35 "rpool/var/www" = {
36 use_template = [ "local" ];
37 daily = 7;
38 };
39 "rpool/var/redis" = {
40 use_template = [ "local" ];
41 hourly = 0;
42 daily = 7;
43 };
44 "rpool/home/julm/mail" = {
45 use_template = [ "local" ];
46 hourly = 12;
47 daily = 7;
48 };
49 "rpool/home/julm/log" = {
50 use_template = [ "local" ];
51 hourly = 12;
52 daily = 7;
53 monthly = 1;
54 };
55 "rpool/backup/losurdo/home/julm/work" = {
56 use_template = [ "remote" ];
57 daily = 31;
58 };
59 "rpool/backup/losurdo/var/postgresql" = {
60 use_template = [ "remote" ];
61 daily = 31;
62 };
63 };
64 };
65 }