diff options
Diffstat (limited to 'modules/zfssnap')
-rw-r--r-- | modules/zfssnap/default.nix | 34 |
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 | }; |