diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-18 16:40:27 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-18 16:48:11 +0200 |
commit | 21573af9fb0b53806703c44b46d813b0c5d6efa5 (patch) | |
tree | f45c95aa793604f3eb0c11010b52f5d65d348723 /nixos/modules/virtualisation/container-config.nix | |
parent | 5c62d3d26b07bb78ec92aec69e99dbee542f5e9d (diff) | |
download | nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.tar nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.tar.gz nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.tar.bz2 nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.tar.lz nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.tar.xz nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.tar.zst nixlib-21573af9fb0b53806703c44b46d813b0c5d6efa5.zip |
Containers: Use /etc/resolv.conf supplied by the host
This used to work with systemd-nspawn 203, because it bind-mounted /etc/resolv.conf (so openresolv couldn't overwrite it). Now it's just copied, so we need some special handling.
Diffstat (limited to 'nixos/modules/virtualisation/container-config.nix')
-rw-r--r-- | nixos/modules/virtualisation/container-config.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/container-config.nix b/nixos/modules/virtualisation/container-config.nix index ae06fcb41e38..46dcdbd77128 100644 --- a/nixos/modules/virtualisation/container-config.nix +++ b/nixos/modules/virtualisation/container-config.nix @@ -8,6 +8,8 @@ with lib; sound.enable = mkDefault false; + networking.useHostResolvConf = true; + # Provide a login prompt on /var/lib/login.socket. On the host, # you can connect to it by running ‘socat # unix:<path-to-container>/var/lib/login.socket -,echo=0,raw’. |