diff options
author | Elis Hirwing <elis@hirwing.se> | 2021-09-10 07:13:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 07:13:12 +0200 |
commit | eac6215607e4ccceb9631b01ee8f8903a6e82e02 (patch) | |
tree | c29b277d414a68d3ee6fd65b1c7d66f9a307bafd /nixos/modules/services/backup | |
parent | 55add811b7b0d087d02fc3caf70e8153336e93a4 (diff) | |
parent | df972a3dde2d0a5564313b8de7ae85ab48530869 (diff) | |
download | nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.tar nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.tar.gz nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.tar.bz2 nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.tar.lz nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.tar.xz nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.tar.zst nixpkgs-eac6215607e4ccceb9631b01ee8f8903a6e82e02.zip |
Merge pull request #136460 from misuzu/sanoid-recursive-zfs
nixos/sanoid: allow zfs value for recursive
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/sanoid.nix | 9 |
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; }; |