summary refs log tree commit diff
path: root/nixos/modules/services/databases/mysql.nix
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2018-11-15 17:46:09 -0800
committerRyan Mulligan <ryan@ryantm.com>2018-11-15 17:46:09 -0800
commit23dfa4e0737895e43e4d936f94b2582526103b7e (patch)
treee8699657fe7bb8f085c14b9a7160f76892cd7b8d /nixos/modules/services/databases/mysql.nix
parent5dea8fa3e760b85668ee9922680a6585286819f2 (diff)
downloadnixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.tar
nixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.tar.gz
nixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.tar.bz2
nixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.tar.lz
nixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.tar.xz
nixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.tar.zst
nixpkgs-23dfa4e0737895e43e4d936f94b2582526103b7e.zip
nixos/mysql: fix ensureUsers example formatting
closes #50441
Diffstat (limited to 'nixos/modules/services/databases/mysql.nix')
-rw-r--r--nixos/modules/services/databases/mysql.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix
index 0dde9ee6e2e..c8545d327af 100644
--- a/nixos/modules/services/databases/mysql.nix
+++ b/nixos/modules/services/databases/mysql.nix
@@ -147,7 +147,7 @@ in
           option is changed. This means that users created and permissions assigned once through this option or
           otherwise have to be removed manually.
         '';
-        example = [
+        example = literalExample ''[
           {
             name = "nextcloud";
             ensurePermissions = {
@@ -160,7 +160,7 @@ in
               "*.*" = "SELECT, LOCK TABLES";
             };
           }
-        ];
+        ]'';
       };
 
       # FIXME: remove this option; it's a really bad idea.