From 151edaab9bac9d1412ddca1f511484ac84083315 Mon Sep 17 00:00:00 2001 From: Anish L Date: Sat, 3 Sep 2022 15:51:38 +1000 Subject: [PATCH] speed up curve boot --- hosts/curve/curve.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/curve/curve.nix b/hosts/curve/curve.nix index 82a43d53..a0ce8ac2 100644 --- a/hosts/curve/curve.nix +++ b/hosts/curve/curve.nix @@ -1,10 +1,16 @@ -{profiles, suites, ... }: +{ profiles, suites, ... }: { imports = [ - profiles.core + profiles.core profiles.users.anish profiles.hardware.curve # how else to deal with hardware? ]; bud.enable = true; + + # Speed up boot by removing dependency on network + systemd = { + targets.network-online.wantedBy = pkgs.lib.mkForce [ ]; # Normally ["multi-user.target"] + services.NetworkManager-wait-online.wantedBy = pkgs.lib.mkForce [ ]; # Normally ["network-online.target"] + }; }