nixos-config/hosts/ni/modules/hardware/traditional-networking.nix
Gabriel Arazas 8a23bd7932 hosts/ni: modularize networking configuration
Re-added the setup with the traditional networking configuration since
I'm currently using GNOME which only integrates with NetworkManager
which is working alongside it.

systemd-networkd not being used at this point but I'm keeping it.
2023-01-31 16:48:10 +08:00

22 lines
389 B
Nix

{ config, options, lib, pkgs, ... }:
{
networking = {
usePredictableInterfaceNames = true;
useDHCP = false;
dhcpcd.enable = true;
interfaces.enp1s0.useDHCP = true;
interfaces.wlp2s0.useDHCP = true;
bonds.bond0 = {
driverOptions = {
miimon = "100";
mode = "active-backup";
};
interfaces = [ "enp1s0" "wlp2s0" ];
};
};
}