nixos/boxes/colony: Disable DHCP in dev VM

This commit is contained in:
Jack O'Sullivan 2022-02-21 00:37:09 +00:00
parent 9d2272b3df
commit 132e5c239c

View File

@ -5,7 +5,10 @@
home-manager = "unstable";
docCustom = false;
configuration = { lib, pkgs, modulesPath, ... }:
configuration = { lib, pkgs, modulesPath, config, ... }:
let
inherit (lib) mkIf;
in
{
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
@ -46,7 +49,9 @@
};
networking = {
interfaces.enp1s0.useDHCP = true;
interfaces = mkIf (!config.my.build.isDevVM) {
enp1s0.useDHCP = true;
};
};
};
};