]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/sanoid.nix
mermet: dovecot: try to fix list.sieve
[sourcephile-nix.git] / hosts / losurdo / sanoid.nix
1 { pkgs, lib, config, hostName, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 snap = {
7 autosnap = true;
8 autoprune = true;
9 yearly = 0;
10 monthly = 3;
11 daily = 31;
12 hourly = 0;
13 frequently = 0;
14 };
15 prune = {
16 autosnap = false;
17 autoprune = true;
18 yearly = 0;
19 monthly = 3;
20 daily = 31;
21 hourly = 24;
22 frequently = 0;
23 };
24 };
25 extraArgs = [
26 "--verbose"
27 #"--debug"
28 ];
29 datasets = {
30 "${hostName}/home/julm/work" = {
31 use_template = [ "snap" ];
32 recursive = true;
33 };
34 "das1/home/julm/work" = {
35 use_template = [ "prune" ];
36 recursive = true;
37 };
38 "${hostName}/backup/mermet" = {
39 use_template = [ "prune" ];
40 recursive = true;
41 process_children_only = true;
42 };
43 "${hostName}/backup/mermet/var/redis-rspamd" = {
44 use_template = [ "prune" ];
45 monthly = 0;
46 daily = 1;
47 hourly = 1;
48 };
49 "${hostName}/backup/mermet/var/mail" = {
50 use_template = [ "prune" ];
51 daily = 31;
52 hourly = 12;
53 };
54 };
55 };
56 }