about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorDenys Pavlov <me@denys.me>2020-01-09 19:22:41 +0800
committerDenys Pavlov <me@denys.me>2020-01-09 19:45:41 +0800
commit90b68233731d9cce54f99a1651027c60c8909c31 (patch)
tree78132a616f1f72c9297ca9edcc907fae73cb29b0 /nixos
parentf1568223c9cd39f6771a58944fb8f79ac03f1e85 (diff)
downloadnixlib-90b68233731d9cce54f99a1651027c60c8909c31.tar
nixlib-90b68233731d9cce54f99a1651027c60c8909c31.tar.gz
nixlib-90b68233731d9cce54f99a1651027c60c8909c31.tar.bz2
nixlib-90b68233731d9cce54f99a1651027c60c8909c31.tar.lz
nixlib-90b68233731d9cce54f99a1651027c60c8909c31.tar.xz
nixlib-90b68233731d9cce54f99a1651027c60c8909c31.tar.zst
nixlib-90b68233731d9cce54f99a1651027c60c8909c31.zip
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
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/tasks/powertop.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/tasks/powertop.nix b/nixos/modules/tasks/powertop.nix
index 609831506e16..e8064f9fa80c 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 = {