diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index fdc05312ece0..effc9182472e 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -159,7 +159,7 @@ in
For more information on how to specify the target
and on which privileges exist, see the
GRANT syntax.
- The attributes are used as GRANT ''${attrName} ON ''${attrValue}.
+ The attributes are used as GRANT ''${attrValue} ON ''${attrName}.
'';
example = literalExample ''
{