lib/lxc-container: make /etc/resolve.conf nameserver setting multi-line

This commit is contained in:
Astro 2021-09-20 22:11:41 +02:00
parent 1235a7439d
commit 0fc2612425
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@
networking.networkmanager.dns = "unbound";
networking.useHostResolvConf = false;
environment.etc."resolv.conf".text = ''
nameserver ${builtins.concatStringsSep " " config.networking.nameservers}
'';
environment.etc."resolv.conf".text = lib.concatMapStrings (ns: ''
nameserver ${ns}
'') config.networking.nameservers;
nix.useSandbox = false;
nix.maxJobs = lib.mkDefault 1;