diff --git a/system/starlight/default.nix b/system/starlight/default.nix index fe5ad1d..bec2ea2 100644 --- a/system/starlight/default.nix +++ b/system/starlight/default.nix @@ -11,6 +11,7 @@ ./boot-config.nix ./hardware-configuration.nix ./scripts.nix + ./postgres.nix ../../sets/builder.nix ../../sets/disc.nix ../../sets/fpga.nix diff --git a/system/starlight/postgres.nix b/system/starlight/postgres.nix new file mode 100644 index 0000000..fe04d5c --- /dev/null +++ b/system/starlight/postgres.nix @@ -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; + } + ]; + }; +}