mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-14 21:57:17 +00:00
23 lines
381 B
Nix
23 lines
381 B
Nix
{config, ...}: let
|
|
cfgUser = config.myOptions.system.username;
|
|
in {
|
|
networking = {
|
|
firewall.enable = false;
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
dns = "systemd-resolved";
|
|
};
|
|
};
|
|
|
|
services.resolved = {
|
|
enable = true;
|
|
fallbackDns = [
|
|
"9.9.9.9"
|
|
"2620:fe::fe"
|
|
];
|
|
};
|
|
|
|
users.extraGroups.networkmanager.members = ["${cfgUser}"];
|
|
}
|