feat(nixos/databases): add alphastory db and user to postgresql
This commit is contained in:
parent
e0202a9f87
commit
b3a5441e8b
1 changed files with 6 additions and 1 deletions
|
@ -41,8 +41,13 @@ in
|
||||||
local all all trust
|
local all all trust
|
||||||
|
|
||||||
# ipv4
|
# ipv4
|
||||||
host all all 0.0.0.0/32 trust
|
host all all 0.0.0.0/0 trust
|
||||||
'';
|
'';
|
||||||
|
ensureDatabases = singleton "alphastory";
|
||||||
|
ensureUsers = singleton {
|
||||||
|
name = "alphastory";
|
||||||
|
ensureDBOwnership = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(lib.mkIf cfg.mongodb.enable {
|
(lib.mkIf cfg.mongodb.enable {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue