forked from c3d2/nix-config
buzzrelay: init
This commit is contained in:
parent
2a8c242d54
commit
971430afa2
|
@ -727,6 +727,13 @@
|
|||
./hosts/mastodon
|
||||
];
|
||||
};
|
||||
|
||||
buzzrelay = nixosSystem' {
|
||||
modules = [
|
||||
self.nixosModules.cluster-options
|
||||
./hosts/buzzrelay
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nixosModules = {
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
{
|
||||
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";
|
||||
};
|
||||
} ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue