From 1156b2078540f8f8b7b33e36232950f7ed74e81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 3 Aug 2024 06:18:52 +0300 Subject: [PATCH] enable nsd, minidlna --- hosts/fwminex/configuration.nix | 22 ++++++++++++++ hosts/vno1-oh2/configuration.nix | 50 -------------------------------- 2 files changed, 22 insertions(+), 50 deletions(-) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index 16f127b..7ce70ee 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -85,6 +85,28 @@ in ''; }; + nsd = { + enable = true; + interfaces = [ + "0.0.0.0" + "::" + ]; + zones = { + "jakstys.lt.".data = myData.jakstysLTZone; + "11sync.net.".data = myData.e11syncZone; + }; + }; + + minidlna = { + enable = true; + openFirewall = true; + settings = { + media_dir = [ "/home/motiejus/video" ]; + friendly_name = "vno1-oh2"; + inotify = "yes"; + }; + }; + prometheus = { enable = true; port = myData.ports.prometheus; diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index 3af7af4..3b99e6b 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -357,56 +357,6 @@ }; }; - prometheus = { - enable = true; - port = myData.ports.prometheus; - retentionTime = "1y"; - - globalConfig = { - scrape_interval = "10s"; - evaluation_interval = "1m"; - }; - - scrapeConfigs = - let - port = builtins.toString myData.ports.exporters.node; - in - [ - { - job_name = "prometheus"; - static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.prometheus}" ]; } ]; - } - { - job_name = "caddy"; - static_configs = [ { targets = [ "127.0.0.1:${toString myData.ports.exporters.caddy}" ]; } ]; - } - { - job_name = "${config.networking.hostName}.${config.networking.domain}"; - static_configs = [ { targets = [ "127.0.0.1:${port}" ]; } ]; - } - { - job_name = "fra1-b.servers.jakst"; - static_configs = [ { targets = [ "${myData.hosts."fra1-b.servers.jakst".jakstIP}:${port}" ]; } ]; - } - { - job_name = "vno3-rp3b.servers.jakst"; - static_configs = [ { targets = [ "${myData.hosts."vno3-rp3b.servers.jakst".jakstIP}:${port}" ]; } ]; - } - { - job_name = "fwminex.servers.jakst"; - static_configs = [ { targets = [ "${myData.hosts."fwminex.servers.jakst".jakstIP}:${port}" ]; } ]; - } - { - job_name = "mtworx.motiejus.jakst"; - static_configs = [ { targets = [ "${myData.hosts."mtworx.motiejus.jakst".jakstIP}:${port}" ]; } ]; - } - { - job_name = "vno1-vinc.vincentas.jakst"; - static_configs = [ { targets = [ "${myData.hosts."vno1-vinc.vincentas.jakst".jakstIP}:9100" ]; } ]; - } - ]; - }; - nsd = { enable = true; interfaces = [