mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ config, ... }:
|
|
{
|
|
system.stateVersion = "24.11";
|
|
|
|
custom = {
|
|
sops.enable = true;
|
|
boot.loader.grub.enable = true;
|
|
|
|
users.seb.enable = true;
|
|
|
|
services = {
|
|
resolved.enable = true;
|
|
tailscale = {
|
|
enable = true;
|
|
ssh.enable = true;
|
|
};
|
|
|
|
gatus = {
|
|
enable = true;
|
|
domain = "status.${config.custom.services.tailscale.domain}";
|
|
endpointDomains = config.meta.domains.globalList;
|
|
customEndpoints = {
|
|
"alerts" = {
|
|
group = "Monitoring";
|
|
url = "https://alerts.${config.custom.services.tailscale.domain}/v1/health";
|
|
extraConditions = [ "[BODY].healthy == true" ];
|
|
};
|
|
"git ssh".url = "ssh://git.sstork.dev";
|
|
};
|
|
};
|
|
|
|
ntfy = {
|
|
enable = true;
|
|
domain = "alerts.${config.custom.services.tailscale.domain}";
|
|
};
|
|
|
|
caddy.virtualHosts = {
|
|
gatus = {
|
|
inherit (config.custom.services.gatus) domain port;
|
|
};
|
|
ntfy = {
|
|
inherit (config.custom.services.ntfy) domain port;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|