nixos/systemd.nix: don’t require online for multi-user.target
Not all systems need to be online to boot up. So, don’t pull
network-online.target into multi-user.target. Services that need
online network can still require it.
This increases my boot time from ~9s to ~5s.
commit764c8203b833176d546395a5c1adf193a9ca73f8
authorMatthew Bauer <mjbauer95@gmail.com>
dateTue 28 Apr 2020, 18:56 (7 years ago)
parent5e6adf7
nixos/modules/system/boot/systemd.nix−1
@@ -1033,7 +1033,6 @@ in
10331033 systemd.services.systemd-journald.stopIfChanged = false;
10341034 systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
10351035 systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
1036− systemd.targets.network-online.wantedBy = [ "multi-user.target" ];
10371036 systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.mount" ];
10381037
10391038 # Don't bother with certain units in containers.