Skip to content

Commit

Permalink
network-interfaces-scripted: Add static parameter for default gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
markus2342 authored and globin committed Apr 16, 2017
1 parent 71d8ce6 commit 5042e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/tasks/network-interfaces-scripted.nix
Expand Up @@ -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).
Expand All @@ -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
''}
'';
};
Expand Down

0 comments on commit 5042e9d

Please sign in to comment.