created postgresql service

This commit is contained in:
Leyla Becker 2024-09-21 15:09:17 -05:00
parent 9c05ba0593
commit 949726e851

View file

@ -96,6 +96,22 @@
''; '';
}; };
postgresql = {
enable = true;
ensureDatabases = [ "forgejo" ];
identMap = ''
# ArbitraryMapName systemUser DBUser
superuser_map root postgres
superuser_map postgres postgres
superuser_map forgejo forgejo
'';
# configuration here lets users access the db that matches their name and lets user postgres access everything
authentication = pkgs.lib.mkOverride 10 ''
# type database DBuser auth-method optional_ident_map
local sameuser all peer map=superuser_map
'';
};
headscale = { headscale = {
enable = true; enable = true;
address = "0.0.0.0"; address = "0.0.0.0";