]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/sanoid.nix
postgresql: log connections
[sourcephile-nix.git] / servers / mermet / sanoid.nix
1 { pkgs, lib, config, ... }:
2 {
3 services.sanoid = {
4 enable = true;
5 templates = {
6 database = {
7 hourly = 0;
8 daily = 7;
9 monthly = 0;
10 yearly = 0;
11 autosnap = true;
12 autoprune = true;
13 settings = {
14 };
15 };
16 git = {
17 hourly = 0;
18 daily = 7;
19 monthly = 0;
20 yearly = 0;
21 autosnap = true;
22 autoprune = true;
23 settings = {
24 };
25 };
26 mail = {
27 hourly = 12;
28 daily = 7;
29 monthly = 0;
30 yearly = 0;
31 autosnap = true;
32 autoprune = true;
33 settings = {
34 };
35 };
36 log = {
37 hourly = 12;
38 daily = 7;
39 monthly = 1;
40 yearly = 0;
41 autosnap = true;
42 autoprune = true;
43 settings = {
44 };
45 };
46 www = {
47 hourly = 0;
48 daily = 7;
49 monthly = 0;
50 yearly = 0;
51 autosnap = true;
52 autoprune = true;
53 settings = {
54 };
55 };
56 };
57 extraArgs = [
58 "--verbose"
59 #"--debug"
60 ];
61 datasets = {
62 "rpool/var/git" = {
63 use_template = [ "git" ];
64 #recursive = true;
65 };
66 "rpool/var/mail" = {
67 use_template = [ "mail" ];
68 #recursive = true;
69 };
70 "rpool/var/public-inbox" = {
71 use_template = [ "mail" ];
72 #recursive = true;
73 };
74 "rpool/var/www" = {
75 use_template = [ "www" ];
76 #recursive = true;
77 };
78 "rpool/var/redis" = {
79 use_template = [ "database" ];
80 #recursive = true;
81 };
82 "rpool/home/julm/mail" = {
83 use_template = [ "mail" ];
84 #recursive = true;
85 };
86 "rpool/home/julm/log" = {
87 use_template = [ "log" ];
88 #recursive = true;
89 };
90 };
91 };
92 }