lib/lxc-container: build a static /etc/resolv.conf instead of using resolvconf
This commit is contained in:
parent
b6bd649e45
commit
f765d05ebf
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, modulesPath, ... }:
|
||||
{ config, pkgs, lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
@ -8,6 +8,9 @@
|
|||
|
||||
networking.networkmanager.dns = "unbound";
|
||||
networking.useHostResolvConf = false;
|
||||
environment.etc."resolv.conf".text = ''
|
||||
nameserver ${builtins.concatStringsSep " " config.networking.nameservers}
|
||||
'';
|
||||
|
||||
nix.useSandbox = false;
|
||||
nix.maxJobs = lib.mkDefault 1;
|
||||
|
|
Loading…
Reference in New Issue