25 lines
449 B
Nix
25 lines
449 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
deployment = {
|
||
|
mem = 2 * 1024;
|
||
|
vcpu = 8;
|
||
|
needForSpeed = true;
|
||
|
};
|
||
|
system.stateVersion = "22.11";
|
||
|
networking = {
|
||
|
hostName = "buzzrelay";
|
||
|
firewall.allowedTCPPorts = [ 80 443 ];
|
||
|
};
|
||
|
|
||
|
services.postgresql = {
|
||
|
enable = true;
|
||
|
ensureDatabases = [ "buzzrelay" ];
|
||
|
ensureUsers = [ {
|
||
|
name = "relay";
|
||
|
ensurePermissions = {
|
||
|
"DATABASE buzzrelay" = "ALL PRIVILEGES";
|
||
|
};
|
||
|
} ];
|
||
|
};
|
||
|
}
|