services: pm: Remove thinkfan activation-service extension

sioyek
Luis Guilherme Coelho 2024-02-13 18:42:11 -03:00
parent eeb67eeafc
commit 9ac53fb19b
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 0 additions and 10 deletions

View File

@ -57,22 +57,12 @@ arbitrary command-line arguments to thinkfan as a list of strings."))
(define (thinkfan-modprobe-etc-service config)
`(("modprobe.d/thinkfan.conf" ,thinkfan-modprobe-config)))
(define thinkfan-activation
(match-record-lambda <thinkfan-configuration>
(config-file)
(when (file-like? config-file)
#~(begin
(use-modules (guix build utils))
(copy-file #$config-file "/etc/thinkfan.conf")))))
(define thinkfan-service-type
(service-type
(name 'thinkfan)
(extensions
(list (service-extension shepherd-root-service-type
thinkfan-shepherd-service)
(service-extension activation-service-type
thinkfan-activation)
(service-extension etc-service-type
thinkfan-modprobe-etc-service)))
(default-value (thinkfan-configuration))