Slight test speedup
Don't do a pointless ARP check in dhcpcd.
This commit is contained in:
parent
64b968f81f
commit
f7d28f7cd6
|
@ -80,6 +80,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
networking.dhcpcd.denyInterfaces = mkOption {
|
networking.dhcpcd.denyInterfaces = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
description = ''
|
description = ''
|
||||||
Disable the DHCP client for any interface whose name matches
|
Disable the DHCP client for any interface whose name matches
|
||||||
|
@ -90,6 +91,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.dhcpcd.extraConfig = mkOption {
|
networking.dhcpcd.extraConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
Literal string to append to the config file generated for dhcpcd.
|
Literal string to append to the config file generated for dhcpcd.
|
||||||
|
|
|
@ -399,6 +399,9 @@ in
|
||||||
# Wireless won't work in the VM.
|
# Wireless won't work in the VM.
|
||||||
networking.wireless.enable = mkVMOverride false;
|
networking.wireless.enable = mkVMOverride false;
|
||||||
|
|
||||||
|
# Speed up booting by not waiting for ARP.
|
||||||
|
networking.dhcpcd.extraConfig = "noarp";
|
||||||
|
|
||||||
system.requiredKernelConfig = with config.lib.kernelConfig;
|
system.requiredKernelConfig = with config.lib.kernelConfig;
|
||||||
[ (isEnabled "VIRTIO_BLK")
|
[ (isEnabled "VIRTIO_BLK")
|
||||||
(isEnabled "VIRTIO_PCI")
|
(isEnabled "VIRTIO_PCI")
|
||||||
|
|
Loading…
Reference in a new issue