faster boot on pc

This commit is contained in:
Kopatz
2025-02-25 17:13:47 +01:00
parent 25a0f7b01c
commit f95ae3a249
3 changed files with 16 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ in {
kop-newproject # creates a shell.nix and .envrc
nix-tree # show nix derivations
binwalk # show what's inside a binary
iotop
];
};
}

View File

@@ -0,0 +1,14 @@
{ lib, pkgs, config, ... }: {
# before: Startup finished in 18.830s (firmware) + 5.844s (loader) + 4.422s (kernel) + 7.616s (userspace) = 36.713s
# after: Startup finished in 14.115s (firmware) + 789ms (loader) + 4.312s (kernel) + 5.777s (userspace) = 24.995s
systemd = {
targets.network-online.wantedBy =
lib.mkForce [ ]; # Normally ["multi-user.target"]
services.NetworkManager-wait-online.wantedBy =
lib.mkForce [ ]; # Normally ["network-online.target"]
};
# mash spacebar to still be able to select a different boot option
boot.loader.timeout = 0;
virtualisation.docker.enableOnBoot = false;
}