@ -14,6 +14,18 @@ in
options . hardware . facetimehd . enable = mkEnableOption " f a c e t i m e h d k e r n e l m o d u l e " ;
options . hardware . facetimehd . withCalibration = mkOption {
default = false ;
example = true ;
type = types . bool ;
description = ''
Whether to include sensor calibration files for facetimehd .
This makes colors look much better but is experimental , see
< link xlink:href= " h t t p s : / / g i t h u b . c o m / p a t j a k / f a c e t i m e h d / w i k i / E x t r a c t i n g - t h e - s e n s o r - c a l i b r a t i o n - f i l e s " / >
for details .
'' ;
} ;
config = mkIf cfg . enable {
assertions = singleton {
@ -27,7 +39,8 @@ in
boot . extraModulePackages = [ kernelPackages . facetimehd ] ;
hardware . firmware = [ pkgs . facetimehd-firmware ] ;
hardware . firmware = [ pkgs . facetimehd-firmware ]
++ optional cfg . withCalibration pkgs . facetimehd-calibration ;
# unload module during suspend/hibernate as it crashes the whole system
powerManagement . powerDownCommands = ''