faster boot on pc
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
14
modules/misc/faster-boot-time.nix
Normal file
14
modules/misc/faster-boot-time.nix
Normal 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;
|
||||
}
|
||||
@@ -13,6 +13,7 @@
|
||||
../../modules/support/ntfs.nix
|
||||
../../modules/fh/writing.nix
|
||||
../../modules/work/vpn.nix
|
||||
../../modules/misc/faster-boot-time.nix
|
||||
];
|
||||
|
||||
custom = {
|
||||
|
||||
Reference in New Issue
Block a user