Skip to content

Commit

Permalink
nixos/networking: support static resolv.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Dec 4, 2017
1 parent 7993e87 commit d5facd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/config/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
''}
'';
Expand Down

0 comments on commit d5facd5

Please sign in to comment.