nixdots/system/shared/network.nix

23 lines
381 B
Nix
Raw Normal View History

2024-09-24 08:18:41 +00:00
{config, ...}: let
cfgUser = config.myOptions.system.username;
in {
2024-02-24 21:24:22 +00:00
networking = {
firewall.enable = false;
networkmanager = {
enable = true;
dns = "systemd-resolved";
};
};
2024-03-19 07:30:04 +00:00
services.resolved = {
enable = true;
fallbackDns = [
"9.9.9.9"
"2620:fe::fe"
];
2024-03-19 07:30:04 +00:00
};
2024-09-24 08:18:41 +00:00
users.extraGroups.networkmanager.members = ["${cfgUser}"];
2024-02-24 21:24:22 +00:00
}