Move networking config to system.nix

This commit is contained in:
outfoxxed 2023-07-26 01:40:55 -07:00
parent 07f488ec6a
commit 972559e2cf
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
2 changed files with 18 additions and 18 deletions

View File

@ -53,22 +53,4 @@
pulse.enable = true;
jack.enable = true;
};
networking = {
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
nameservers = [ "9.9.9.9" ];
};
services.resolved = {
enable = true;
dnssec = "true";
fallbackDns = [ "9.9.9.9" ];
extraConfig = ''
DNSOverTLS=yes
'';
};
}

View File

@ -21,5 +21,23 @@
environment.systemPackages = with pkgs; [
git
vim
networking = {
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
nameservers = [ "9.9.9.9" ];
};
services.resolved = {
enable = true;
dnssec = "true";
fallbackDns = [ "9.9.9.9" ];
extraConfig = ''
DNSOverTLS=yes
'';
};
];
}