diff --git a/templates/nixos/config b/templates/nixos/config index 4411aa9..fb8f92d 100644 --- a/templates/nixos/config +++ b/templates/nixos/config @@ -9,7 +9,6 @@ seccomp=1 # Ensure to change br1 to the interface name you want to use # You may want to add additional options here, e.g. bind mounts systemd_nspawn_user_args=--network-bridge=br1 - --resolv-conf=bind-host --bind-ro=./lxd.nix:/etc/nixos/lxd.nix # Script to run on the HOST before starting the jail @@ -22,6 +21,7 @@ pre_start_hook=#!/usr/bin/env bash echo 'BEFORE_FIRST_BOOT' # Create empty nix module to satisfy import in default lxc configuration.nix echo '{ ... }:{}' > ./lxd.nix + cp /etc/resolv.conf ./rootfs/etc/resolv.conf fi # Only used while creating the jail