Delay startup of non-essential services
1 file changed, 12 insertions(+), 1 deletion(-)
changed files
M modules/hardware/laptop.nix → modules/hardware/laptop.nix
@@ -6,7 +6,18 @@ x86_energy_perf_policy ]; hardware = { - bluetooth.enable = true; + bluetooth = { + enable = true; + powerOnBoot = false; + }; + }; + systemd.services.bluetooth.wantedBy = lib.mkForce []; + systemd.timers.bluetooth = { + description = "Delayed startup of Bluetooth"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnActiveSec = "1 min"; + }; }; environment.systemPackages = with pkgs; [