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