Move networking config to system.nix
This commit is contained in:
parent
07f488ec6a
commit
972559e2cf
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue