perf: speed up startup

This commit is contained in:
Moritz Böhme 2023-10-25 17:19:59 +02:00
parent 300d5058c5
commit 12a28e1f84
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

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;
}; };
} }