Use mkAfter for services.postgresql.authentication
Authentication methods are tried in order, so if another NixOS module
defines a specific ident mapping like
local hydra all ident map=hydra-users
it should appear before the generic
local all all ident
commitf667310c066ca7f773518b2efb94e76ebea08163
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateWed 1 Jul 2015, 13:46 (11 years ago)
parent6f6be9b
nixos/modules/services/databases/postgresql.nix+1−1
@@ -154,7 +154,7 @@ in
154154
155155 config = mkIf config.services.postgresql.enable {
156156
157− services.postgresql.authentication =
157+ services.postgresql.authentication = mkAfter
158158 ''
159159 # Generated file; do not edit!
160160 local all all ident ${optionalString pre84 "sameuser"}