From 8758f476b36e1d98ad2c854889c642ad6d86c505 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 14 Apr 2017 11:10:33 +0800 Subject: [PATCH] networking: add option to toggle the wait-online service --- nixos/modules/config/networking.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index 619f36cd515..5f42ec51703 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -186,6 +186,15 @@ in ''; }; }; + networking.waitForOnline = lib.mkOption { + type = types.bool; + default = true; + description = '' + When bringing up the network, always wait for it to be online before continuing. + + This is currently only implemented for networkd. + ''; + }; }; config = {