mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
22 lines
380 B
Nix
22 lines
380 B
Nix
{ config, 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" ];
|
|
};
|
|
};
|
|
}
|