From 7388f51d55a01cbcac18146de3696df87d1be3ce Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 3 Dec 2019 16:18:02 +0100 Subject: [PATCH] lib/lxc-container: disable DHCP globablly It is still configured for eth0. --- lib/lxc-container.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lxc-container.nix b/lib/lxc-container.nix index 3474a809..d073a179 100644 --- a/lib/lxc-container.nix +++ b/lib/lxc-container.nix @@ -9,7 +9,7 @@ nix.useSandbox = false; nix.maxJobs = lib.mkDefault 1; nix.buildCores = lib.mkDefault 4; - #networking.useNetworkd = true; + networking.useDHCP = false; networking.interfaces.eth0 = { useDHCP = true; @@ -24,7 +24,7 @@ # Create a few files early before packing tarball for Proxmox # architecture/OS detection. - system.extraSystemBuilderCmds = + system.extraSystemBuilderCmds = '' mkdir -m 0755 -p $out/bin ln -s ${pkgs.bash}/bin/bash $out/bin/sh