# thermal control management { config, lib, ... }: let cfg = config.my.services.thermald; in { options.my.services.thermald = { enable = lib.mkEnableOption "thermald configuration"; }; config = lib.mkIf cfg.enable { services.thermald = { enable = true; }; }; }