diff --git a/modules/radix/services/linux.scm b/modules/radix/services/linux.scm index ccd4e68..1bcd236 100644 --- a/modules/radix/services/linux.scm +++ b/modules/radix/services/linux.scm @@ -53,12 +53,21 @@ (one-shot? #t) (respawn? respawn?))))) +(define thinkfan-modprobe-config + (plain-file "thinkfan.conf" + "options thinkpad_acpi experimental=1 fan_control=1")) + +(define thinkfan-modprobe-etc-service + `(("modprobe.d/thinkfan.conf" ,thinkfan-modprobe-config))) + (define thinkfan-service-type (service-type (name 'thinkfan) (extensions (list (service-extension shepherd-root-service-type - thinkfan-shepherd-service))) + thinkfan-shepherd-service)) + (service-extension etc-service-type + thinkfan-modprobe-etc-service)) (default-value (thinkfan-configuration)) (description "Adjust fan level according to configured temperature limits.")))