diff --git a/system/starlight/default.nix b/system/starlight/default.nix index ccfeee8..e544b0f 100644 --- a/system/starlight/default.nix +++ b/system/starlight/default.nix @@ -11,6 +11,7 @@ ./boot-config.nix ./hardware-configuration.nix ./scripts.nix + ./osm.nix ../../sets/builder.nix ../../sets/disc.nix ../../sets/fpga.nix diff --git a/system/starlight/osm.nix b/system/starlight/osm.nix new file mode 100644 index 0000000..ffbd304 --- /dev/null +++ b/system/starlight/osm.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + services.postgresql = { + enable = true; + package = pkgs.postgresql_16; + extraPlugins = with config.services.postgresql.package.pkgs; [ postgis ]; + + ensureDatabases = [ "osm" ]; + ensureUsers = [ { name = "artemis"; } ]; + }; +}