diff options
author | Fritz Otlinghaus <fritz@otlinghaus.it> | 2021-01-31 11:29:48 +0100 |
---|---|---|
committer | Fritz Otlinghaus <fritz@otlinghaus.it> | 2021-01-31 15:06:50 +0100 |
commit | b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2 (patch) | |
tree | 32c94315f7b5a07beb6466c8ece2aeaeff1b9664 /nixos/modules/services/backup/mysql-backup.nix | |
parent | 4015c5ca9c6ec7d4aa765c97b4413b478daa278b (diff) | |
download | nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.tar nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.tar.gz nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.tar.bz2 nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.tar.lz nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.tar.xz nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.tar.zst nixpkgs-b9d5ecf80b8ee07e2d110ec8276d9267d85a14a2.zip |
nixos/mysqlBackup: add types
Diffstat (limited to 'nixos/modules/services/backup/mysql-backup.nix')
-rw-r--r-- | nixos/modules/services/backup/mysql-backup.nix | 4 |
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 31d606b141a..506ded5e9e8 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 ''; |