perf: speed up startup

nixos
Moritz Böhme 2023-10-25 17:19:59 +02:00
parent 300d5058c5
commit 12a28e1f84
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 11 additions and 1 deletions

View File

@ -108,7 +108,6 @@ in
services = { services = {
illum.enable = true; illum.enable = true;
resolved.enable = true;
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
pipewire = { pipewire = {
enable = true; enable = true;
@ -116,5 +115,16 @@ in
pulse.enable = true; pulse.enable = true;
}; };
}; };
# faster startup https://majiehong.com/post/2021-07-30_slow_nixos_startup/
networking = {
# no need to wait interfaces to have an IP to continue booting
dhcpcd.wait = "background";
# avoid checking if IP is already taken to boot a few seconds faster
dhcpcd.extraConfig = "noarp";
};
# disable network-online.target
systemd.services.NetworkManager-wait-online.enable = false;
}; };
} }