nixos/boxes/colony: Disable DHCP in dev VM
This commit is contained in:
parent
9d2272b3df
commit
132e5c239c
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user