From 8cc7f0f9cd6235ef69cdaebd26bd86d229d504d8 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Tue, 25 Feb 2025 17:28:07 +0100 Subject: [PATCH] os/systemd/module.nix: init, add faster boot options --- modules/system/os/systemd/module.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 modules/system/os/systemd/module.nix diff --git a/modules/system/os/systemd/module.nix b/modules/system/os/systemd/module.nix new file mode 100644 index 0000000..bfe8e9f --- /dev/null +++ b/modules/system/os/systemd/module.nix @@ -0,0 +1,7 @@ +{pkgs, ...}: { + config.systemd = { + # faster startup + targets.network-online.wantedBy = pkgs.lib.mkForce []; # Normally ["multi-user.target"] + services.NetworkManager-wait-online.wantedBy = pkgs.lib.mkForce []; # Normally ["network-online.target"] + }; +}