dots/modules/services/glance.nix
Nico 8d96a11cb7 Revert "caddy: use more topic-based subdomains for services"
breaks ssl with arr sites

This reverts commit 71d13e9b6cf97925af4cc631c1e7b67d79969ca3.
2025-05-03 16:34:35 +10:00

132 lines
4.3 KiB
Nix

{ config, lib, pkgs, ... }:
{
services.glance = {
enable = true;
settings.server.port = 8888;
settings.server.host = "0.0.0.0";
openFirewall = false;
settings = {
pages = [
{
name = "Home";
hide-desktop-navigation = true;
columns = [
{
size = "full";
widgets = [
{
type = "group";
widgets = [
{
type = "clock";
hour-format = "24h";
timezones = [
{
timezone = "Australia/Sydney";
label = "Sydney";
}
{
timezone = "Europe/London";
label = "London";
}
{
timezone = "Europe/Moscow";
label = "Moscow";
}
];
}
{
type = "weather";
location = "Sydney, Australia";
units = "metric"; # alternatively "imperial"
hour-format = "12h"; # alternatively "24h"
}
{
type = "calendar";
first-day-of-week = "monday";
}
];
}
{
type = "bookmarks";
groups = [
{
title = "Media";
color = "10 70 50";
links = [
{
title = "Jellyfin";
url = "https://watch.${config.homelab.domain}";
}
{
title = "Jellyseer";
url = "https://jellyseer.${config.homelab.domain}";
}
{
title = "Radarr";
url = "https://radarr.${config.homelab.domain}";
}
{
title = "Sonarr";
url = "https://sonarr.${config.homelab.domain}";
}
{
title = "Lidarr";
url = "https://lidarr.${config.homelab.domain}";
}
{
title = "Prowlarr";
url = "https://prowlarr.${config.homelab.domain}";
}
{
title = "Bazarr";
url = "https://bazarr.${config.homelab.domain}";
}
{
title = "Deluge";
url = "https://deluge.${config.homelab.domain}";
}
];
}
{
title = "Sync";
color = "120 73 75";
links = [
{
title = "Miniflux";
url = "https://rss.${config.homelab.domain}";
}
{
title = "Karakeep";
url = "https://karakeep.${config.homelab.domain}";
}
];
}
{
title = "System";
color = "207 100 50";
links = [
{
title = "PocketID";
url = "https://auth.${config.homelab.domain}";
}
];
}
];
}
];
}
];
}
];
};
};
services.caddy.virtualHosts."${config.homelab.domain}" = {
useACMEHost = config.homelab.domain;
extraConfig = ''
reverse_proxy http://localhost:8888
'';
};
}