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; pulse.enable = true;
jack.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; [ environment.systemPackages = with pkgs; [
git git
vim 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
'';
};
]; ];
} }