mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/ni/networking/setup: add DNS option for NetworkManager setup
This commit is contained in:
parent
b95dd0f59a
commit
25149e2f38
@ -115,10 +115,16 @@ in
|
||||
networking.usePredictableInterfaceNames = true;
|
||||
|
||||
# Enable and configure NetworkManager.
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
dhcp = lib.mkIf (config.networking.dhcpcd.enable) "dhcpcd";
|
||||
};
|
||||
networking.networkmanager = lib.mkMerge [
|
||||
{
|
||||
enable = true;
|
||||
dhcp = lib.mkIf (config.networking.dhcpcd.enable) "dhcpcd";
|
||||
}
|
||||
|
||||
(lib.mkIf config.services.resolved.enable {
|
||||
dns = "systemd-resolved";
|
||||
})
|
||||
];
|
||||
|
||||
# We'll configure individual network interfaces to use DHCP since it can
|
||||
# fail wait-online-interface.service.
|
||||
|
Loading…
Reference in New Issue
Block a user