From f563ddece04adfd8d80d4e984405f5c70a6c94f3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 2 Nov 2022 18:20:24 +0100 Subject: surtr: borg backup to vidhar --- modules/zfssnap/default.nix | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'modules/zfssnap') 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 { enable = mkEnableOption "zfssnap service"; config = mkOption { - type = with types; attrsOf (attrsOf str); - default = { - keep = { - within = "15m"; - "5m" = "48"; - "15m" = "32"; - hourly = "48"; - "4h" = "24"; - "12h" = "12"; - daily = "62"; - halfweekly = "32"; - weekly = "24"; - monthly = "-1"; + type = types.submodule { + options = { + keep = mkOption { + type = with types; attrsOf str; + default = { + within = "15m"; + "5m" = "48"; + "15m" = "32"; + hourly = "48"; + "4h" = "24"; + "12h" = "12"; + daily = "62"; + halfweekly = "32"; + weekly = "24"; + monthly = "-1"; + }; + }; + exec = mkOption { + type = with types; attrsOf str; + default = {}; + }; }; }; }; -- cgit v1.2.3