mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +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;
|
networking.usePredictableInterfaceNames = true;
|
||||||
|
|
||||||
# Enable and configure NetworkManager.
|
# Enable and configure NetworkManager.
|
||||||
networking.networkmanager = {
|
networking.networkmanager = lib.mkMerge [
|
||||||
enable = true;
|
{
|
||||||
dhcp = lib.mkIf (config.networking.dhcpcd.enable) "dhcpcd";
|
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
|
# We'll configure individual network interfaces to use DHCP since it can
|
||||||
# fail wait-online-interface.service.
|
# fail wait-online-interface.service.
|
||||||
|
Loading…
Reference in New Issue
Block a user