mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Avoid repitition of domain names
This commit is contained in:
parent
cc211d016b
commit
39edb229af
3 changed files with 206 additions and 194 deletions
|
|
@ -17,7 +17,11 @@
|
|||
|
||||
boot.loader.grub.enable = true;
|
||||
|
||||
services = {
|
||||
services =
|
||||
let
|
||||
tailscaleDomain = config.custom.services.tailscale.domain;
|
||||
in
|
||||
{
|
||||
resolved.enable = true;
|
||||
tailscale = {
|
||||
enable = true;
|
||||
|
|
@ -26,7 +30,7 @@
|
|||
|
||||
gatus = {
|
||||
enable = true;
|
||||
domain = "status.${config.custom.services.tailscale.domain}";
|
||||
domain = "status.${tailscaleDomain}";
|
||||
domainsToMonitor = config.meta.domains.globalList;
|
||||
endpoints = {
|
||||
"alerts" = {
|
||||
|
|
@ -46,17 +50,17 @@
|
|||
|
||||
ntfy = {
|
||||
enable = true;
|
||||
domain = "alerts.${config.custom.services.tailscale.domain}";
|
||||
domain = "alerts.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
grafana = {
|
||||
enable = true;
|
||||
domain = "grafana.${config.custom.services.tailscale.domain}";
|
||||
domain = "grafana.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
victorialogs = {
|
||||
enable = true;
|
||||
domain = "logs.${config.custom.services.tailscale.domain}";
|
||||
domain = "logs.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
caddy.virtualHosts =
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@
|
|||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
||||
services = {
|
||||
services =
|
||||
let
|
||||
tailscaleDomain = config.custom.services.tailscale.domain;
|
||||
in
|
||||
{
|
||||
resolved.enable = true;
|
||||
tailscale = {
|
||||
enable = true;
|
||||
|
|
@ -28,25 +32,25 @@
|
|||
isServer = true;
|
||||
doBackups = true;
|
||||
deviceId = "5R2MH7T-Q2ZZS2P-ZMSQ2UJ-B6VBHES-XYLNMZ6-7FYC27L-4P7MGJ2-FY4ITQD";
|
||||
gui.domain = "syncthing.${config.custom.services.tailscale.domain}";
|
||||
gui.domain = "syncthing.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
filebrowser = {
|
||||
enable = true;
|
||||
doBackups = true;
|
||||
domain = "files.${config.custom.services.tailscale.domain}";
|
||||
domain = "files.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
radicale = {
|
||||
enable = true;
|
||||
doBackups = true;
|
||||
domain = "calendar.${config.custom.services.tailscale.domain}";
|
||||
domain = "calendar.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
actualbudget = {
|
||||
enable = true;
|
||||
doBackups = true;
|
||||
domain = "budget.${config.custom.services.tailscale.domain}";
|
||||
domain = "budget.${tailscaleDomain}";
|
||||
};
|
||||
|
||||
caddy.virtualHosts =
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@
|
|||
|
||||
boot.loader.grub.enable = true;
|
||||
|
||||
services = {
|
||||
services =
|
||||
let
|
||||
sproutedDomain = "sprouted.cloud";
|
||||
in
|
||||
{
|
||||
resolved.enable = true;
|
||||
tailscale = {
|
||||
enable = true;
|
||||
|
|
@ -42,32 +46,32 @@
|
|||
hedgedoc = {
|
||||
enable = true;
|
||||
doBackups = true;
|
||||
domain = "docs.sprouted.cloud";
|
||||
domain = "docs.${sproutedDomain}";
|
||||
};
|
||||
|
||||
outline = {
|
||||
enable = true;
|
||||
domain = "outline.sprouted.cloud";
|
||||
domain = "outline.${sproutedDomain}";
|
||||
};
|
||||
|
||||
it-tools = {
|
||||
enable = true;
|
||||
domain = "tools.sprouted.cloud";
|
||||
domain = "tools.${sproutedDomain}";
|
||||
};
|
||||
|
||||
stirling-pdf = {
|
||||
enable = true;
|
||||
domain = "pdf.sprouted.cloud";
|
||||
domain = "pdf.${sproutedDomain}";
|
||||
};
|
||||
|
||||
privatebin = {
|
||||
enable = true;
|
||||
domain = "pastebin.sprouted.cloud";
|
||||
domain = "pastebin.${sproutedDomain}";
|
||||
};
|
||||
|
||||
openspeedtest = {
|
||||
enable = true;
|
||||
domain = "speedtest.sprouted.cloud";
|
||||
domain = "speedtest.${sproutedDomain}";
|
||||
};
|
||||
|
||||
caddy.virtualHosts =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue