From d66ae00bb7f9d29438e8e752001dfaa4fc6a0da1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 23 Sep 2023 08:07:36 +0100 Subject: [PATCH] Move nameserver setting to flake.nix for reuse --- flake.nix | 1 + hosts/Legion/configuration.nix | 1 - hosts/Vanguard/configuration.nix | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 803c8f98..5d6b489f 100644 --- a/flake.nix +++ b/flake.nix @@ -122,6 +122,7 @@ networking = { inherit hostName; networkmanager.enable = true; + nameservers = [ "9.9.9.9" ]; }; environment = { systemPackages = with pkgs; [ git neofetch ]; diff --git a/hosts/Legion/configuration.nix b/hosts/Legion/configuration.nix index aa43abaf..11830ccf 100644 --- a/hosts/Legion/configuration.nix +++ b/hosts/Legion/configuration.nix @@ -12,7 +12,6 @@ in { # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.nameservers = [ "192.168.1.230" "127.0.0.1" "9.9.9.9" ]; system.autoUpgrade = { enable = true; dates = "02:00"; diff --git a/hosts/Vanguard/configuration.nix b/hosts/Vanguard/configuration.nix index 5d544a2d..df9e4484 100644 --- a/hosts/Vanguard/configuration.nix +++ b/hosts/Vanguard/configuration.nix @@ -6,7 +6,6 @@ # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.nameservers = [ "192.168.1.230" "9.9.9.9" ]; services.syncthing.settings.folders = { "Archive".enable = false; "Books".enable = false;