diff options
author | William A. Kennington III <william@wkennington.com> | 2014-11-22 22:22:09 -0800 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-11-26 11:22:02 -0800 |
commit | 295a17f87249ffc042964aa40b217cf045f9830a (patch) | |
tree | f8f25fde9757afb4df917b2b36aa43a1af04b60b /nixos/modules/tasks/network-interfaces-scripted.nix | |
parent | 59f512ef7d2137586330f2cabffc41a70f4f0346 (diff) | |
download | nixlib-295a17f87249ffc042964aa40b217cf045f9830a.tar nixlib-295a17f87249ffc042964aa40b217cf045f9830a.tar.gz nixlib-295a17f87249ffc042964aa40b217cf045f9830a.tar.bz2 nixlib-295a17f87249ffc042964aa40b217cf045f9830a.tar.lz nixlib-295a17f87249ffc042964aa40b217cf045f9830a.tar.xz nixlib-295a17f87249ffc042964aa40b217cf045f9830a.tar.zst nixlib-295a17f87249ffc042964aa40b217cf045f9830a.zip |
nixos/network-interfaces-scripted: Fix network-setup triggering
Diffstat (limited to 'nixos/modules/tasks/network-interfaces-scripted.nix')
-rw-r--r-- | nixos/modules/tasks/network-interfaces-scripted.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix index a39f1a09a344..64291a62421d 100644 --- a/nixos/modules/tasks/network-interfaces-scripted.nix +++ b/nixos/modules/tasks/network-interfaces-scripted.nix @@ -123,6 +123,7 @@ in # Only do an add if it's necessary. This is # useful when the Nix store is accessed via this # interface (e.g. in a QEMU VM test). + restart_network_interfaces=false '' + flip concatMapStrings (ips) (ip: let @@ -142,7 +143,7 @@ in '') + optionalString (ips != [ ]) '' - if [ restart_network_setup = true ]; then + if [ "$restart_network_setup" = "true" ]; then # Ensure that the default gateway remains set. # (Flushing this interface may have removed it.) ${config.systemd.package}/bin/systemctl try-restart --no-block network-setup.service |