]> Git — Sourcephile - sourcephile-nix.git/blob - machines/losurdo/sanoid.nix
tor: fix dependencies and disable at boot for now
[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}/backup/mermet/var/git" = {
27 use_template = [ "remote" ];
28 daily = 7;
29 };
30 "${machineName}/backup/mermet/var/mail" = {
31 use_template = [ "remote" ];
32 hourly = 12;
33 daily = 7;
34 monthly = 1;
35 };
36 "${machineName}/backup/mermet/var/public-inbox" = {
37 use_template = [ "remote" ];
38 daily = 7;
39 };
40 "${machineName}/backup/mermet/var/redis" = {
41 use_template = [ "remote" ];
42 hourly = 1;
43 daily = 7;
44 };
45 "${machineName}/backup/mermet/var/www" = {
46 use_template = [ "remote" ];
47 daily = 7;
48 };
49 "${machineName}/backup/mermet/home/julm/mail" = {
50 use_template = [ "remote" ];
51 hourly = 12;
52 daily = 7;
53 };
54 "${machineName}/backup/mermet/home/julm/log" = {
55 use_template = [ "remote" ];
56 hourly = 12;
57 daily = 7;
58 monthly = 1;
59 };
60 };
61 };
62 }