{ config, lib, pkgs, ... }: { options = { server.misc.lauti = { enable = lib.mkEnableOption "enable lauti"; port = lib.mkOption { default = 3333; description = "lauti port"; }; public = lib.mkEnableOption "make lauti public"; subdomain = lib.mkOption { default = "lauti"; description = "lauti subdomain"; }; }; }; config = { services = { eintopf = { enable = config.server.misc.lauti.enable; settings = { LAUTI_ADMIN_EMAIL = "test@example.org"; LAUTI_BASE_URL = "https://freising.space"; LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/eintopf/osm"; LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png"; LAUTI_TIMEZONE = "Europe/Berlin"; LAUTI_LANGUAGE = "en"; }; secrets = [ /etc/lauti-secrets ]; }; nginx = { virtualHosts = { ${"freising.space"} = { enableACME = true; forceSSL = true; locations."/" = { proxyPass = "http://127.0.0.1:3333"; }; }; }; }; }; }; }