lib/lxc-container: disable DHCP globablly

It is still configured for eth0.
This commit is contained in:
Ehmry - 2019-12-03 16:18:02 +01:00 committed by Astro
parent ca44a44ede
commit 7388f51d55
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
nix.useSandbox = false; nix.useSandbox = false;
nix.maxJobs = lib.mkDefault 1; nix.maxJobs = lib.mkDefault 1;
nix.buildCores = lib.mkDefault 4; nix.buildCores = lib.mkDefault 4;
#networking.useNetworkd = true; networking.useDHCP = false;
networking.interfaces.eth0 = { networking.interfaces.eth0 = {
useDHCP = true; useDHCP = true;
@ -24,7 +24,7 @@
# Create a few files early before packing tarball for Proxmox # Create a few files early before packing tarball for Proxmox
# architecture/OS detection. # architecture/OS detection.
system.extraSystemBuilderCmds = system.extraSystemBuilderCmds =
'' ''
mkdir -m 0755 -p $out/bin mkdir -m 0755 -p $out/bin
ln -s ${pkgs.bash}/bin/bash $out/bin/sh ln -s ${pkgs.bash}/bin/bash $out/bin/sh