container config: better default in case of resolved

Avoid assertion in nixos/modules/system/boot/resolved.nix
if service systemd-resolved is enabled.
This commit is contained in:
Christian Kögler 2019-08-22 07:52:58 +02:00 committed by Franz Pletz
parent cca5cb5a02
commit 28853d8954
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -10,7 +10,7 @@ with lib;
services.udisks2.enable = mkDefault false; services.udisks2.enable = mkDefault false;
powerManagement.enable = mkDefault false; powerManagement.enable = mkDefault false;
networking.useHostResolvConf = mkDefault true; networking.useHostResolvConf = mkDefault (!config.services.resolved.enable);
# Containers should be light-weight, so start sshd on demand. # Containers should be light-weight, so start sshd on demand.
services.openssh.startWhenNeeded = mkDefault true; services.openssh.startWhenNeeded = mkDefault true;