summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-12-04 16:07:21 +0000
committerGitHub <noreply@github.com>2017-12-04 16:07:21 +0000
commit81e5b51a2c1a8730d5a3a986788669bebd4bd298 (patch)
tree881222715033e8e1bd22b79392fdd04d4381a6fe /nixos/modules
parentaf75b48b518a0d897693dafefbb3c02eaf3215cc (diff)
parentd5facd5df3538f5483e4665775a8ed98f6918ed1 (diff)
downloadnixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.tar
nixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.tar.gz
nixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.tar.bz2
nixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.tar.lz
nixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.tar.xz
nixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.tar.zst
nixlib-81e5b51a2c1a8730d5a3a986788669bebd4bd298.zip
Merge pull request #32308 from orivej/static-resolv-conf
nixos/networking: support static resolv.conf
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/config/networking.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix
index 619f36cd5150..4101ef82f3e1 100644
--- a/nixos/modules/config/networking.nix
+++ b/nixos/modules/config/networking.nix
@@ -290,8 +290,8 @@ in
           ln -s /run/systemd/resolve/resolv.conf /run/resolvconf/interfaces/systemd
         ''}
 
-        # Make sure resolv.conf is up to date if not managed by systemd
-        ${optionalString (!config.services.resolved.enable) ''
+        # Make sure resolv.conf is up to date if not managed manually or by systemd
+        ${optionalString (!config.environment.etc?"resolv.conf") ''
           ${pkgs.openresolv}/bin/resolvconf -u
         ''}
       '';