nix: fail evaluation if power-profiles-daemon is enabled (#809)

Fixes systemd service being killed on boot
This commit is contained in:
shadeyg56 2025-02-09 04:56:26 -06:00 committed by GitHub
parent 4cee388c1b
commit e6bbd2c833
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
'';
}
];
};
}