]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/sanoid.nix
losurdo: sourcehut: sync config with module changes
[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 = 24;
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 "${hostName}/backup/mermet" = {
35 use_template = [ "prune" ];
36 recursive = true;
37 process_children_only = true;
38 };
39 "${hostName}/backup/mermet/var/redis" = {
40 use_template = [ "prune" ];
41 monthly = 0;
42 daily = 1;
43 hourly = 1;
44 };
45 "${hostName}/backup/mermet/var/mail" = {
46 use_template = [ "prune" ];
47 monthly = 0;
48 daily = 31;
49 hourly = 12;
50 };
51 };
52 };
53 }