summaryrefslogtreecommitdiff
path: root/modules/zfssnap
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-02 18:20:24 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-02 18:20:24 +0100
commitf563ddece04adfd8d80d4e984405f5c70a6c94f3 (patch)
treefe82abab81c8d33ff19aa657c1617a0befc21637 /modules/zfssnap
parent6bafcb244bd6cd031ac9b65fce8a2a939698ecaa (diff)
downloadnixos-f563ddece04adfd8d80d4e984405f5c70a6c94f3.tar
nixos-f563ddece04adfd8d80d4e984405f5c70a6c94f3.tar.gz
nixos-f563ddece04adfd8d80d4e984405f5c70a6c94f3.tar.bz2
nixos-f563ddece04adfd8d80d4e984405f5c70a6c94f3.tar.xz
nixos-f563ddece04adfd8d80d4e984405f5c70a6c94f3.zip
surtr: borg backup to vidhar
Diffstat (limited to 'modules/zfssnap')
-rw-r--r--modules/zfssnap/default.nix34
1 files changed, 21 insertions, 13 deletions
diff --git a/modules/zfssnap/default.nix b/modules/zfssnap/default.nix
index f6f32852..23041c36 100644
--- a/modules/zfssnap/default.nix
+++ b/modules/zfssnap/default.nix
@@ -27,19 +27,27 @@ in {
27 enable = mkEnableOption "zfssnap service"; 27 enable = mkEnableOption "zfssnap service";
28 28
29 config = mkOption { 29 config = mkOption {
30 type = with types; attrsOf (attrsOf str); 30 type = types.submodule {
31 default = { 31 options = {
32 keep = { 32 keep = mkOption {
33 within = "15m"; 33 type = with types; attrsOf str;
34 "5m" = "48"; 34 default = {
35 "15m" = "32"; 35 within = "15m";
36 hourly = "48"; 36 "5m" = "48";
37 "4h" = "24"; 37 "15m" = "32";
38 "12h" = "12"; 38 hourly = "48";
39 daily = "62"; 39 "4h" = "24";
40 halfweekly = "32"; 40 "12h" = "12";
41 weekly = "24"; 41 daily = "62";
42 monthly = "-1"; 42 halfweekly = "32";
43 weekly = "24";
44 monthly = "-1";
45 };
46 };
47 exec = mkOption {
48 type = with types; attrsOf str;
49 default = {};
50 };
43 }; 51 };
44 }; 52 };
45 }; 53 };