{ config, pkgs, ... }: { services.hardware.pommed = { enable = if (config.beancloud.hardware.backlight.service == "pommed" && config.beancloud.hardware.macbook) then true else false; configFile = if (config.beancloud.hardware.backlight.service == "pommed" && config.beancloud.hardware.macbook) then pkgs.callPackage ./config-macbook-air.nix { } else null; }; }