fix (options): remove unused option & fix errors in option's code

This commit is contained in:
Kirill Samoylenkov 2025-09-27 17:38:26 +05:00
parent 27de19b32d
commit d87fa01cf7
4 changed files with 4 additions and 35 deletions

View file

@ -2,7 +2,6 @@
lib,
pkgs,
config,
inputs,
...
}:
let
@ -36,7 +35,7 @@ in
description = "CPU configuration for the laptop.";
};
type = lib.mkOption {
type = lib.enum [
type = lib.types.enum [
"intel"
"amd"
];
@ -91,9 +90,6 @@ in
enable = true;
};
imports = lib.optional (
cfg.cpu.enable && cfg.cpu.type == "intel"
) inputs.nixos-hardware.nixosModules.common-cpu-intel;
services.thermald = lib.mkIf (cfg.cpu.enable && cfg.cpu.type == "intel") {
enable = true;
package = pkgs.thermald;