infrastructure/nixos/common/generic-vm.nix

12 lines
379 B
Nix
Raw Normal View History

2021-10-13 18:17:45 +02:00
{ lib, ... }: {
2022-10-15 13:44:27 +02:00
2021-10-13 18:17:45 +02:00
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.ens18.useDHCP = lib.mkDefault true;
# Enable qemu guest agent
services.qemuGuest.enable = true;
}