Move nameserver setting to flake.nix for reuse

This commit is contained in:
Evie Litherland-Smith 2023-09-23 08:07:36 +01:00
parent 5a2b3094f5
commit d66ae00bb7
3 changed files with 1 additions and 2 deletions

View file

@ -122,6 +122,7 @@
networking = { networking = {
inherit hostName; inherit hostName;
networkmanager.enable = true; networkmanager.enable = true;
nameservers = [ "9.9.9.9" ];
}; };
environment = { environment = {
systemPackages = with pkgs; [ git neofetch ]; systemPackages = with pkgs; [ git neofetch ];

View file

@ -12,7 +12,6 @@ in {
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.nameservers = [ "192.168.1.230" "127.0.0.1" "9.9.9.9" ];
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
dates = "02:00"; dates = "02:00";

View file

@ -6,7 +6,6 @@
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
networking.nameservers = [ "192.168.1.230" "9.9.9.9" ];
services.syncthing.settings.folders = { services.syncthing.settings.folders = {
"Archive".enable = false; "Archive".enable = false;
"Books".enable = false; "Books".enable = false;