lib/lxc-container: build a static /etc/resolv.conf instead of using resolvconf

This commit is contained in:
Astro 2021-03-12 21:08:05 +01:00
parent b6bd649e45
commit f765d05ebf
1 changed files with 4 additions and 1 deletions

View File

@ -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;