diff options
author | Markus Mueller <john.subscriber@markus.institute> | 2017-04-16 20:58:40 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-04-16 22:59:53 +0200 |
commit | 5042e9d00979c32b33cfb2406fa4e5e0a91db91f (patch) | |
tree | 15ad5b2d924085410a6daa4693b72d336a1f9395 /nixos | |
parent | 71d8ce6f4be68731b9a43e545323d6d9be0ed229 (diff) | |
download | nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.tar nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.tar.gz nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.tar.bz2 nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.tar.lz nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.tar.xz nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.tar.zst nixpkgs-5042e9d00979c32b33cfb2406fa4e5e0a91db91f.zip |
network-interfaces-scripted: Add static parameter for default gateway
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/tasks/network-interfaces-scripted.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix index 720891d518a..f6f104ce7a6 100644 --- a/nixos/modules/tasks/network-interfaces-scripted.nix +++ b/nixos/modules/tasks/network-interfaces-scripted.nix @@ -120,7 +120,7 @@ let optionalString (cfg.defaultGatewayWindowSize != null) "window ${toString cfg.defaultGatewayWindowSize}"} ${ optionalString (cfg.defaultGateway.interface != null) - "dev ${cfg.defaultGateway.interface}"} || true + "dev ${cfg.defaultGateway.interface}"} proto static || true ''} ${optionalString (cfg.defaultGateway6 != null && cfg.defaultGateway6.address != "") '' # FIXME: get rid of "|| true" (necessary to make it idempotent). @@ -130,7 +130,7 @@ let optionalString (cfg.defaultGatewayWindowSize != null) "window ${toString cfg.defaultGatewayWindowSize}"} ${ optionalString (cfg.defaultGateway6.interface != null) - "dev ${cfg.defaultGateway6.interface}"} || true + "dev ${cfg.defaultGateway6.interface}"} proto static || true ''} ''; }; |