about summary refs log tree commit diff
path: root/nixos/modules/services/backup
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-08-13 11:48:42 -0400
committerGitHub <noreply@github.com>2019-08-13 11:48:42 -0400
commit6f6468bef34394b5c63aaa46fe20965993420600 (patch)
tree894c55c5e6140c956eb7e63b75e0a1b3b99ddd1c /nixos/modules/services/backup
parent8a95dfd829cdcd83c4fbd5046e354d84db3f6738 (diff)
parent88bb9fa4037c7cda4cb2fb94792d17e44fd55a18 (diff)
downloadnixlib-6f6468bef34394b5c63aaa46fe20965993420600.tar
nixlib-6f6468bef34394b5c63aaa46fe20965993420600.tar.gz
nixlib-6f6468bef34394b5c63aaa46fe20965993420600.tar.bz2
nixlib-6f6468bef34394b5c63aaa46fe20965993420600.tar.lz
nixlib-6f6468bef34394b5c63aaa46fe20965993420600.tar.xz
nixlib-6f6468bef34394b5c63aaa46fe20965993420600.tar.zst
nixlib-6f6468bef34394b5c63aaa46fe20965993420600.zip
Merge pull request #65728 from Infinisil/types-eithers
lib/types: Add oneOf, extension of either to a list of types
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r--nixos/modules/services/backup/automysqlbackup.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/backup/automysqlbackup.nix b/nixos/modules/services/backup/automysqlbackup.nix
index b845f370fb70..1884f3536a97 100644
--- a/nixos/modules/services/backup/automysqlbackup.nix
+++ b/nixos/modules/services/backup/automysqlbackup.nix
@@ -41,7 +41,7 @@ in
       };
 
       config = mkOption {
-        type = with types; attrsOf (either (either str (either int bool)) (listOf str));
+        type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
         default = {};
         description = ''
           automysqlbackup configuration. Refer to