dns swapover

This commit is contained in:
2026-05-12 23:22:03 -05:00
parent 37796783ad
commit 83c83e6bc8
3 changed files with 25 additions and 24 deletions
+1
View File
@@ -46,6 +46,7 @@
}; };
homelab = { homelab = {
enable = true; enable = true;
base_domain = "snowbelle.blakedheld.xyz";
# services # services
gitea.enable = true; gitea.enable = true;
glance.enable = true; glance.enable = true;
+12 -8
View File
@@ -1,12 +1,14 @@
{ pkgs, config, lib, ... }: {
pkgs,
let config,
lib,
...
}: let
service = "sonarr"; service = "sonarr";
cfg = config.homelab.${service}; cfg = config.homelab.${service};
sec = config.sops.secrets; sec = config.sops.secrets;
homelab = config.homelab; homelab = config.homelab;
in in {
{
options.homelab.${service} = { options.homelab.${service} = {
enable = lib.mkEnableOption "enables ${service}"; enable = lib.mkEnableOption "enables ${service}";
@@ -43,7 +45,6 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# required # required
environment.systemPackages = with pkgs; [ffmpeg_6-headless]; environment.systemPackages = with pkgs; [ffmpeg_6-headless];
@@ -91,12 +92,15 @@ in
}; };
# add to glance # add to glance
homelab.glance.links.mediastack = [{ homelab.glance.links.mediastack = [
{
title = service; title = service;
url = "https://${cfg.url}"; url = "https://${cfg.url}";
error-url = "http://${homelab.host_ip}:${toString cfg.port}"; error-url = "http://${homelab.host_ip}:${toString cfg.port}";
check-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}";
icon = "di:${service}"; }]; icon = "di:${service}";
}
];
# add to backups # add to backups
homelab.backups.baks = { homelab.backups.baks = {
+3 -7
View File
@@ -28,13 +28,9 @@ in {
#interface = "enp89s0"; #interface = "enp89s0";
bind-interfaces = true; bind-interfaces = true;
address = [ address = [
"/snowbelle.lan/10.10.0.10" "/snowbelle.blakedheld.xyz/10.10.0.10"
"/snowbelle.lab.blakedheld.xyz/10.10.0.10" "/lumiose.blakedheld.xyz/10.10.0.10"
"/.snowbelle.lan/10.10.0.10" "/bebe.blakedheld.xyz/10.10.0.1"
"/lumiose.lan/10.10.0.11"
"/.lumiose.lan/10.10.0.11"
"/lumiose.lab.blakedheld.xyz/10.10.0.10"
"/bebe.lan/10.10.0.1"
]; ];
server = [ server = [
# upstream dns # upstream dns