From 970c33b10d752c412c5175cecc6e0db6439b7a49 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Tue, 4 Jun 2024 22:35:59 +0000 Subject: [PATCH] starlight: start tying openstreetmap stuff again --- system/starlight/default.nix | 1 + system/starlight/osm.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 system/starlight/osm.nix 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"; } ]; + }; +}