about summary refs log tree commit diff
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorMatthieu Coudron <886074+teto@users.noreply.github.com>2023-08-17 19:21:16 +0200
committerMatthieu Coudron <886074+teto@users.noreply.github.com>2023-09-18 11:57:58 +0200
commit956a1876aa635227807bc7c620e46933a06a5ef6 (patch)
tree93cb651eb1ce8c2631b04af9a0c9262f8ebf7237 /nixos/modules/services/databases
parent482619dac70c36b0876223d95daf5a8ef616c0fb (diff)
services.postgresql: add identMap example
to make things clearer
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/postgresql.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 50d0709bcd8f3..9e12227fc7539 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -106,12 +106,14 @@ in
       identMap = mkOption {
         type = types.lines;
         default = "";
+        example = literalExample ''
+          map-name-0 system-username-0 database-username-0
+          map-name-1 system-username-1 database-username-1
+        '';
         description = lib.mdDoc ''
           Defines the mapping from system users to database users.
 
-          The general form is:
-
-          map-name system-username database-username
+          See the [auth doc](https://postgresql.org/docs/current/auth-username-maps.html).
         '';
       };