starlight: add postgres again

This commit is contained in:
Artemis Tosini 2024-10-12 00:45:51 +00:00
parent 38acfe1042
commit 813f94e302
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 19 additions and 0 deletions

View file

@ -11,6 +11,7 @@
./boot-config.nix ./boot-config.nix
./hardware-configuration.nix ./hardware-configuration.nix
./scripts.nix ./scripts.nix
./postgres.nix
../../sets/builder.nix ../../sets/builder.nix
../../sets/disc.nix ../../sets/disc.nix
../../sets/fpga.nix ../../sets/fpga.nix

View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
services.postgresql = {
enable = true;
package = pkgs.postgresql_16;
enableJIT = true;
extraPlugins = with config.services.postgresql.package.pkgs; [ postgis ];
ensureUsers = [
{
name = "artemis";
ensureClauses.superuser = true;
}
];
};
}