feat(networking): enable DHCP by default
This commit is contained in:
parent
f1a8c4e174
commit
c684cebb45
2 changed files with 2 additions and 8 deletions
|
@ -53,14 +53,6 @@
|
|||
fsType = "vfat";
|
||||
};
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
|
@ -19,6 +19,8 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
networking.nameservers = if isAdguardHost then nameservers.local else nameservers.remote;
|
||||
|
||||
networking.nftables.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue