From 4615aad131437a4bf2b1ae31fed82c1cfb4ce843 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 17 Sep 2023 14:03:37 +0200 Subject: [PATCH] boot faster by not waiting for network --- modules/desktop/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 6d768c7..49a2599 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -87,9 +87,14 @@ in { }; }; - systemd.extraConfig = '' - DefaultTimeoutStopSec=12s - ''; + systemd = { + # save some boot time because nothing actually requires network connectivity + services.NetworkManager-wait-online.enable = false; + + extraConfig = '' + DefaultTimeoutStopSec=12s + ''; + }; programs = { zsh.enable = true;