forked from nico/dots
110 lines
3.5 KiB
Nix
110 lines
3.5 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";
|
|
width = "slim";
|
|
hide-desktop-navigation = true;
|
|
center-vertically = true;
|
|
columns = [
|
|
{
|
|
size = "full";
|
|
widgets = [
|
|
{
|
|
type = "search";
|
|
search-engine = "duckduckgo";
|
|
autofocus = true;
|
|
}
|
|
{
|
|
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}";
|
|
}
|
|
{
|
|
title = "Uptime Kuma";
|
|
url = "https://status.${config.homelab.domain}";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
services.caddy.virtualHosts."${config.homelab.domain}" = {
|
|
useACMEHost = config.homelab.domain;
|
|
extraConfig = ''
|
|
reverse_proxy http://localhost:8888
|
|
'';
|
|
};
|
|
}
|