From 2841137177ebc99795b95d3f33da35f9c1b9aed3 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Mon, 24 Jun 2024 15:40:45 +0200 Subject: [PATCH] Copy resolv.conf on first start --- templates/nixos/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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