about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFĂ©lix <1219785+picnoir@users.noreply.github.com>2024-06-12 10:34:48 +0200
committerGitHub <noreply@github.com>2024-06-12 10:34:48 +0200
commite01926a4ac529619044a530b36549b2643363748 (patch)
tree0bc3f55cbce8af8210408900d9797d40a06038b0 /nixos/modules
parent4f537018d08bbaadc9d8f7f54c04b1b06a1ffff6 (diff)
parent12bd55a1a346d773224e318a225c62f7f50aa3ee (diff)
Merge pull request #318342 from stusmall/add-auto-cpufreq-assertion/master
nixos/power-profiles-daemon: Add assertion with auto-cpufreq
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/hardware/power-profiles-daemon.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/power-profiles-daemon.nix b/nixos/modules/services/hardware/power-profiles-daemon.nix
index 05e5b7a00b420..7651c65b9f181 100644
--- a/nixos/modules/services/hardware/power-profiles-daemon.nix
+++ b/nixos/modules/services/hardware/power-profiles-daemon.nix
@@ -39,6 +39,12 @@ in
           which conflicts with services.tlp.enable = true;
         '';
       }
+      { assertion = !config.services.auto-cpufreq.enable;
+        message = ''
+          You have set services.power-profiles-daemon.enable = true;
+          which conflicts with services.auto-cpufreq.enable = true;
+        '';
+      }
     ];
 
     environment.systemPackages = [ cfg.package ];