From 2d5e40882ce3a27d8a70dc0c07b9e6547243f302 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Thu, 5 Oct 2023 23:46:22 +0200 Subject: [PATCH] voyager: remove flame. Move DNS to base.nix --- base.nix | 1 + hosts/chapel/configuration.nix | 1 - hosts/edison/configuration.nix | 1 - hosts/sarek/configuration.nix | 1 - hosts/voyager/configuration.nix | 2 -- hosts/voyager/services/flame.nix | 22 ---------------------- 6 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 hosts/voyager/services/flame.nix diff --git a/base.nix b/base.nix index 2466628..c2fdf68 100644 --- a/base.nix +++ b/base.nix @@ -7,6 +7,7 @@ networking = { domain = "home.feal.no"; + nameservers = [ "192.168.10.3" "192.168.11.100" "1.1.1.1" ]; useDHCP = lib.mkDefault false; }; diff --git a/hosts/chapel/configuration.nix b/hosts/chapel/configuration.nix index dd12118..0be552f 100644 --- a/hosts/chapel/configuration.nix +++ b/hosts/chapel/configuration.nix @@ -16,7 +16,6 @@ networking = { hostName = "chapel"; defaultGateway = "192.168.10.1"; - nameservers = [ "192.168.10.1" ]; interfaces.eth0.ipv4 = { addresses = [ { address = "192.168.10.100"; prefixLength = 24; } diff --git a/hosts/edison/configuration.nix b/hosts/edison/configuration.nix index 1aa3db0..43b8a04 100644 --- a/hosts/edison/configuration.nix +++ b/hosts/edison/configuration.nix @@ -12,7 +12,6 @@ networking = { hostName = "edison"; defaultGateway = "192.168.10.1"; - nameservers = [ "192.168.11.100" "1.1.1.1" ]; # Networking / Wi-Fi is configured with NM for now. TODO networkmanager.enable = true; diff --git a/hosts/sarek/configuration.nix b/hosts/sarek/configuration.nix index f7922af..32be195 100644 --- a/hosts/sarek/configuration.nix +++ b/hosts/sarek/configuration.nix @@ -20,7 +20,6 @@ networking = { hostName = "sarek"; defaultGateway = "192.168.10.1"; - nameservers = [ "192.168.10.3" "192.168.11.100" "1.1.1.1" ]; interfaces."eth0".ipv4 = { addresses = [ { address = "192.168.10.181"; prefixLength = 24; } diff --git a/hosts/voyager/configuration.nix b/hosts/voyager/configuration.nix index c62fdf7..78c836d 100644 --- a/hosts/voyager/configuration.nix +++ b/hosts/voyager/configuration.nix @@ -20,7 +20,6 @@ ./services/jellyfin.nix ./services/transmission.nix ./services/metrics - ./services/flame.nix ./services/gitea.nix ./services/hedgedoc.nix ./services/vaultwarden.nix @@ -35,7 +34,6 @@ networking = { hostName = "voyager"; defaultGateway = "192.168.10.1"; - nameservers = [ "192.168.11.100" "1.1.1.1" ]; interfaces.eno1.ipv4 = { addresses = [ { address = "192.168.10.165"; prefixLength = 24; } diff --git a/hosts/voyager/services/flame.nix b/hosts/voyager/services/flame.nix deleted file mode 100644 index 1e30bbc..0000000 --- a/hosts/voyager/services/flame.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ config, pkgs, lib, ... }: -let - host = "127.0.1.2"; - port = "5005"; -in { - # Flame - Homelab dashboard/linktree - virtualisation.oci-containers.containers = { - flame = { - image = "pawelmalak/flame"; - ports = [ "${host}:${port}:5005" ]; - volumes = [ - "/var/lib/flame/data:/app/data/" - ]; - }; - }; - services.nginx.virtualHosts."flame.home.feal.no" = { - locations."/" = { - proxyPass = "http://${host}:${port}"; - }; - }; - } -