summary refs log tree commit diff
path: root/nixos/modules/services/backup/sanoid.nix
diff options
context:
space:
mode:
authormisuzu <bakalolka@gmail.com>2021-09-02 14:35:30 +0300
committermisuzu <bakalolka@gmail.com>2021-09-02 14:56:23 +0300
commitdf972a3dde2d0a5564313b8de7ae85ab48530869 (patch)
tree50e091fffb7d6e4d821274cdad62138836558b8a /nixos/modules/services/backup/sanoid.nix
parent8d8a28b47b7c41aeb4ad01a2bd8b7d26986c3512 (diff)
downloadnixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.tar
nixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.tar.gz
nixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.tar.bz2
nixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.tar.lz
nixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.tar.xz
nixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.tar.zst
nixpkgs-df972a3dde2d0a5564313b8de7ae85ab48530869.zip
nixos/sanoid: allow zfs value for recursive
Diffstat (limited to 'nixos/modules/services/backup/sanoid.nix')
-rw-r--r--nixos/modules/services/backup/sanoid.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/modules/services/backup/sanoid.nix b/nixos/modules/services/backup/sanoid.nix
index 41d0e2e1df6..e70063415ec 100644
--- a/nixos/modules/services/backup/sanoid.nix
+++ b/nixos/modules/services/backup/sanoid.nix
@@ -57,8 +57,13 @@ let
     useTemplate = use_template;
 
     recursive = mkOption {
-      description = "Whether to recursively snapshot dataset children.";
-      type = types.bool;
+      description = ''
+        Whether to recursively snapshot dataset children.
+        You can also set this to <literal>"zfs"</literal> to handle datasets
+        recursively in an atomic way without the possibility to
+        override settings for child datasets.
+      '';
+      type = with types; oneOf [ bool (enum [ "zfs" ]) ];
       default = false;
     };