From da6f6d58c3055c5608e52898113f98c1b1ed740b Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 16 Sep 2023 12:53:10 +0200 Subject: [PATCH] refactor --- hosts/yodaTab/configuration.nix | 1 - hosts/yodaTux/configuration.nix | 1 - hosts/yodaYoga/configuration.nix | 1 - modules/base.nix | 9 +++++++++ modules/dns.nix | 12 ------------ 5 files changed, 9 insertions(+), 15 deletions(-) delete mode 100644 modules/dns.nix diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index 54b65db..0fa0d55 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -47,7 +47,6 @@ in #../../modules/android.nix #../../modules/podman.nix #../../modules/docker.nix - ../../modules/dns.nix ]; # Manually enable compression diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 6cd9b10..67eb544 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -47,7 +47,6 @@ in ../../modules/android.nix #../../modules/podman.nix ../../modules/docker.nix - ../../modules/dns.nix ]; # Manually enable compression diff --git a/hosts/yodaYoga/configuration.nix b/hosts/yodaYoga/configuration.nix index c8a6292..564daf8 100644 --- a/hosts/yodaYoga/configuration.nix +++ b/hosts/yodaYoga/configuration.nix @@ -49,7 +49,6 @@ in #../../modules/android.nix #../../modules/podman.nix ../../modules/docker.nix - ../../modules/dns.nix ]; # Manually enable compression diff --git a/modules/base.nix b/modules/base.nix index 9aac29e..fd1af4b 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -16,6 +16,15 @@ # Enable networking. networking.networkmanager.enable = true; + networking.nameservers = [ + # https://www.kuketz-blog.de/empfehlungsecke/#dns + # dot.ffmuc.net (supports DNSSEC) + "5.1.66.255" "185.150.99.255" + # https://www.kuketz-blog.de/empfehlungsecke/#dns + # unfiltered.adguard-dns.com (supports DNSSEC) + "94.140.14.140" "94.140.14.141" + ]; + # Set your time zone. time.timeZone = "Europe/Berlin"; diff --git a/modules/dns.nix b/modules/dns.nix deleted file mode 100644 index 1e9ecf5..0000000 --- a/modules/dns.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, pkgs, ... }: - -{ - networking.nameservers = [ - # https://www.kuketz-blog.de/empfehlungsecke/#dns - # dot.ffmuc.net (unterstützt DNSSEC) - "5.1.66.255" "185.150.99.255" - # https://www.kuketz-blog.de/empfehlungsecke/#dns - # unfiltered.adguard-dns.com (unterstützt DNSSEC) - "94.140.14.140" "94.140.14.141" - ]; -}