{ povSelf, hostConfig, config, lib, ... }: let inherit (lib) types; cfg = lib.getAttrFromPath povSelf config; in { options = { thinkpad.enable = { type = types.bool; default = false; }; }; config = lib.mkMerge [ (lib.mkIf cfg.thinkpad.enable { boot.extraModprobeConfig = '' options thinkpad_acpi fan_control=1 ''; }) ]; }