all repos — nixfiles @ 05571aa5ed5eb898be468bff237657914f7e9dcf

System and user configuration, managed by nix and home-manager

Delay startup of non-essential services

Alan Pearce
commit

05571aa5ed5eb898be468bff237657914f7e9dcf

parent

68f44953449af2ad3565426e1716757fe7afc04b

1 file changed, 12 insertions(+), 1 deletion(-)

changed files
M modules/hardware/laptop.nixmodules/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; [