starlight: start tying openstreetmap stuff again

This commit is contained in:
Artemis Tosini 2024-06-04 22:35:59 +00:00
parent cd47cdfcdf
commit 970c33b10d
Signed by: artemist
SSH key fingerprint: SHA256:EsuWCwx6fjxxExxf65rX+ocQJJAdw4R1KarpFue6Uwc
2 changed files with 13 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
./osm.nix
../../sets/builder.nix ../../sets/builder.nix
../../sets/disc.nix ../../sets/disc.nix
../../sets/fpga.nix ../../sets/fpga.nix

12
system/starlight/osm.nix Normal file
View file

@ -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"; } ];
};
}