starlight: add postgres again
This commit is contained in:
parent
38acfe1042
commit
813f94e302
|
@ -11,6 +11,7 @@
|
|||
./boot-config.nix
|
||||
./hardware-configuration.nix
|
||||
./scripts.nix
|
||||
./postgres.nix
|
||||
../../sets/builder.nix
|
||||
../../sets/disc.nix
|
||||
../../sets/fpga.nix
|
||||
|
|
18
system/starlight/postgres.nix
Normal file
18
system/starlight/postgres.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue