moving server from old config to new one (finally)

This commit is contained in:
martyTF 2026-05-14 00:09:24 +02:00
parent 5306a9a633
commit 634171e91d
3 changed files with 68 additions and 9 deletions

View file

@ -4,9 +4,7 @@
pkgs,
...
}:
let
domain = "${config.server.misc.lauti.subdomain}.${config.networking.domain}";
in
{
options = {
server.misc.lauti = {
@ -17,7 +15,7 @@ in
};
public = lib.mkEnableOption "make lauti public";
domain = lib.mkOption {
default = "";
default = "calendar";
description = "lauti domain";
};
subdomain = lib.mkOption {
@ -32,7 +30,7 @@ in
enable = config.server.misc.lauti.enable;
settings = {
LAUTI_ADMIN_EMAIL = "lauti@${config.networking.domain}";
LAUTI_BASE_URL = "https://${domain}";
LAUTI_BASE_URL = "https://${config.server.misc.lauti.subdomain}.${config.networking.domain}";
LAUTI_OSM_TILE_CACHE_DIR = "/var/lib/lauti/osm";
LAUTI_OSM_TILE_SERVER = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
LAUTI_TIMEZONE = "Europe/Berlin";
@ -42,7 +40,7 @@ in
};
nginx = {
virtualHosts = {
"${domain}" =
"${config.server.misc.lauti.subdomain}.${config.networking.domain}" =
if config.server.misc.lauti.public then
{
enableACME = true;