add fw-new
This commit is contained in:
parent
92099bd1e9
commit
b7bfb0f62a
99 changed files with 14973 additions and 319 deletions
20
hosts/fw-new.cloonar.com/modules/postgresql.nix
Normal file
20
hosts/fw-new.cloonar.com/modules/postgresql.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ "mydatabase" ];
|
||||
|
||||
identMap = ''
|
||||
# ArbitraryMapName systemUser DBUser
|
||||
superuser_map root postgres
|
||||
superuser_map postgres postgres
|
||||
# Let other names login as themselves
|
||||
superuser_map /^(.*)$ \1
|
||||
'';
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
#type database DBuser auth-method optional_ident_map
|
||||
local sameuser all peer map=superuser_map
|
||||
'';
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue