Update nixos/modules/services/networking/networkmanager.nix

Co-Authored-By: worldofpeace <worldofpeace@protonmail.ch>
This commit is contained in:
Nikolay Amiantov 2019-07-11 18:37:51 +03:00 committed by GitHub
parent 493bb6035a
commit 48b3e70534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ let
overrideNameserversScript = pkgs.writeScript "02overridedns" ''
#!/bin/sh
PATH=${with pkgs; makeBinPath [ gnused gnugrep coreutils ]}
tmp=`mktemp`
tmp=$(mktemp)
sed '/nameserver /d' /etc/resolv.conf > $tmp
grep 'nameserver ' /etc/resolv.conf | \
grep -vf ${ns (cfg.appendNameservers ++ cfg.insertNameservers)} > $tmp.ns