assertions
This commit is contained in:
@@ -22,6 +22,17 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = !(cfg.lact.enable && cfg.corectrl.enable);
|
||||
message = "mjallen.hardware.amd: lact and corectrl cannot both be enabled — they both manage AMD GPU power profiles and will conflict.";
|
||||
}
|
||||
{
|
||||
assertion = !cfg.corectrl.enablePolkit || cfg.corectrl.polkitGroup != "";
|
||||
message = "mjallen.hardware.amd.corectrl.polkitGroup must be a non-empty group name when enablePolkit is true.";
|
||||
}
|
||||
];
|
||||
|
||||
boot = {
|
||||
kernelModules = [
|
||||
"nct6775"
|
||||
|
||||
Reference in New Issue
Block a user