changes to pg (#52)
This commit is contained in:
parent
179c78ccc7
commit
4c7ba8e68e
@ -69,18 +69,18 @@
|
||||
postgresql = {
|
||||
enable = true;
|
||||
enableJIT = true;
|
||||
identMap = ''
|
||||
# ArbitraryMapName systemUser DBUser
|
||||
superuser_map root postgres
|
||||
superuser_map alice postgres
|
||||
# Let other names login as themselves
|
||||
superuser_map /^(.*)$ \1
|
||||
'';
|
||||
|
||||
upgrade = {
|
||||
enable = true;
|
||||
stopServices = [ "hydra" ];
|
||||
};
|
||||
|
||||
ensureUsers = map
|
||||
(user: {
|
||||
name = user;
|
||||
ensureDBOwnership = true;
|
||||
}) [ "hydra" ];
|
||||
|
||||
ensureDatabases = [ "hydra" ];
|
||||
};
|
||||
|
||||
hydra = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user