add postgres
This commit is contained in:
parent
906bcfc141
commit
a85f93b630
2 changed files with 26 additions and 0 deletions
26
modules/server/kaepora/default.nix
Normal file
26
modules/server/kaepora/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
package = lib.mkDefault pkgs.postgresql_18;
|
||||
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
#type database DBuser IP address auth-method
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 md5
|
||||
'';
|
||||
|
||||
ensureDatabases = [
|
||||
"giovanni"
|
||||
];
|
||||
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "giovanni";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue