From 90b68233731d9cce54f99a1651027c60c8909c31 Mon Sep 17 00:00:00 2001 From: Denys Pavlov Date: Thu, 9 Jan 2020 19:22:41 +0800 Subject: [PATCH] nixos/powertop: wait for hardware to initialize We should wait until after `multi-user.target` is triggered to allow hardware to finish initializing, such as network devices and USB drives. This ensures `powertop --auto-tune` sets more tunables to "Good". Fixes #66820 --- nixos/modules/tasks/powertop.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/tasks/powertop.nix b/nixos/modules/tasks/powertop.nix index 609831506e1..e8064f9fa80 100644 --- a/nixos/modules/tasks/powertop.nix +++ b/nixos/modules/tasks/powertop.nix @@ -15,6 +15,7 @@ in { systemd.services = { powertop = { wantedBy = [ "multi-user.target" ]; + after = [ "multi-user.target" ]; description = "Powertop tunings"; path = [ pkgs.kmod ]; serviceConfig = {