diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-01-26 16:09:30 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-01-27 13:33:20 +0100 |
commit | f4b04127fc1bd4dbdda28f81bc137c50635d5be7 (patch) | |
tree | 9d6ee9454ab3d33fdaf4e35632dd080858cd45c7 /modules/i3/default.nix | |
parent | ef566bb5c4fb9443b32bb65eaa5ddded0c25326a (diff) |
modules/i3: Allow to set a network timeout.
For the primary network interface that is going to be displayed in the status bar, it's a good idea to have a timeout value. I'm sitting in the train right now and it's annoying to *not* have a working status bar. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/i3/default.nix')
-rw-r--r-- | modules/i3/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 7e2795d9..bca88cca 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -37,6 +37,7 @@ let conky = import ./conky.nix { inherit pkgs; + timeout = config.vuizvui.i3.networkTimeout; }; mkBar = output: statusCmd: singleton '' @@ -90,6 +91,14 @@ in the left head. ''; }; + + networkTimeout = mkOption { + type = types.int; + default = 300; + description = '' + Maximum number of seconds to wait for network device detection. + ''; + }; }; config.vuizvui.i3.workspaces = defaultWorkspaces; |