From 4480f48f89ef637813dcb74b8e41f88fe94cd41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 1 Jan 2023 11:32:04 +0000 Subject: [PATCH] change to quad9 dns servers --- nixos/common.nix | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/nixos/common.nix b/nixos/common.nix index 9cd98bf3..aa3ba9ea 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -1,11 +1,5 @@ -{ - config, - pkgs, - lib, - inputs, - nixpkgs-nixos-unstable-and-unfree, - ... -}: let +{ config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }: +let stateVersion = "22.05"; username = "cyryl"; in { @@ -57,9 +51,10 @@ in { shell = pkgs.zsh; }; - networking.nameservers = ["91.239.100.100" "89.233.43.71" "1.1.1.1" "8.8.8.8"]; + networking.nameservers = + [ "9.9.9.9" "2620:fe::fe" "149.112.112.112" "2620:fe::9" ]; - networking.hosts = {"10.11.99.1" = ["remarkable"];}; + networking.hosts = { "10.11.99.1" = [ "remarkable" ]; }; programs.light.enable = true; programs.adb.enable = true; @@ -69,24 +64,29 @@ in { enable = true; autoPrune.enable = true; daemon.settings = { - "insecure-registries" = ["vpsfree1.raptor-carp.ts.net:5000"]; + "insecure-registries" = [ "vpsfree1.raptor-carp.ts.net:5000" ]; }; }; fonts.fontconfig = { enable = true; - defaultFonts.monospace = ["Berkeley Mono"]; + defaultFonts.monospace = [ "Berkeley Mono" ]; }; - fonts.fonts = with pkgs; [ - (runCommand "berkeley-fonts" {} '' - mkdir -vp "$out/share/fonts/opentype" - mkdir -vp "$out/share/fonts/truetype" - ${pkgs.unzip}/bin/unzip ${./fonts.zip} \*.otf -d $out/share/fonts/opentype - ${pkgs.unzip}/bin/unzip ${./fonts.zip} \*.ttf -d $out/share/fonts/truetype + fonts.fonts = with pkgs; + [ + (runCommand "berkeley-fonts" { } '' + mkdir -vp "$out/share/fonts/opentype" + mkdir -vp "$out/share/fonts/truetype" + ${pkgs.unzip}/bin/unzip ${ + ./fonts.zip + } \*.otf -d $out/share/fonts/opentype + ${pkgs.unzip}/bin/unzip ${ + ./fonts.zip + } \*.ttf -d $out/share/fonts/truetype - '') - ]; + '') + ]; nix = { settings.auto-optimise-store = true; @@ -99,5 +99,5 @@ in { ''; }; - system = {inherit stateVersion;}; + system = { inherit stateVersion; }; }