feat: make thinkfan-service-type create /etc/modprobe.d/thinkfan.conf via extending etc-service-type
parent
fa36bf3a64
commit
80552978d5
|
@ -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.")))
|
||||
|
|
Loading…
Reference in New Issue