flocon/modules/nix/core/networking.nix

21 lines
429 B
Nix

{
lib,
config,
...
}: {
config = lib.mkIf (!config.local.profiles.server.enable) {
networking = {
inherit (config.local.systemVars) hostName;
nameservers = ["1.1.1.1" "1.0.0.1"];
networkmanager = {
enable = true;
dns = "systemd-resolved";
wifi.powersave = true;
};
};
services.resolved = {
enable = true;
dnsovertls = "opportunistic";
};
};
}