summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-02-01 12:39:53 +0100
committerGitHub <noreply@github.com>2021-02-01 12:39:53 +0100
commit457ff6d28e6cdf4bfacb85861080d86073d1bb0b (patch)
tree31726619d071c9bbf58218dd78d7f50dd9eaa150
parentd76eec858c5046ec30e4e0f794230f7822dd3ffe (diff)
parentb9d5ecf80b8ee07e2d110ec8276d9267d85a14a2 (diff)
Merge pull request #111422 from helsinki-systems/mysqlBackup
nixos/mysqlBackup: add types
-rw-r--r--nixos/modules/services/backup/mysql-backup.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/mysql-backup.nix b/nixos/modules/services/backup/mysql-backup.nix
index 31d606b141a8..506ded5e9e8c 100644
--- a/nixos/modules/services/backup/mysql-backup.nix
+++ b/nixos/modules/services/backup/mysql-backup.nix
@@ -48,6 +48,7 @@ in
};
user = mkOption {
+ type = types.str;
default = defaultUser;
description = ''
User to be used to perform backup.
@@ -56,12 +57,14 @@ in
databases = mkOption {
default = [];
+ type = types.listOf types.str;
description = ''
List of database names to dump.
'';
};
location = mkOption {
+ type = types.path;
default = "/var/backup/mysql";
description = ''
Location to put the gzipped MySQL database dumps.
@@ -70,6 +73,7 @@ in
singleTransaction = mkOption {
default = false;
+ type = types.bool;
description = ''
Whether to create database dump in a single transaction
'';