nix: fail evaluation if power-profiles-daemon is enabled

Fixes systemd service being killed on boot
This commit is contained in:
shadeyg56 2025-02-08 21:51:38 -06:00
parent 4cee388c1b
commit db419d652f

View File

@ -50,5 +50,15 @@ in {
];
};
};
assertions = [
{
assertion = !config.services.power-profiles-daemon.enable;
message = ''
You have set services.power-profiles-daemon.enable = true;
which conflicts with auto-cpufreq
'';
}
];
};
}