summaryrefslogtreecommitdiff
path: root/px/hardware/lenovo.scm
blob: 89a670aafb7ee6cfe8aa78906380e0e233db61a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(define-module (px hardware lenovo)
  #:use-module (gnu services sddm)
  #:use-module (gnu services xorg)
  #:use-module (nongnu packages linux)
  #:use-module (px system os)
  #:use-module (px packages throttled)
  #:use-module (px system config)
  #:export (%lenovo-thinkpad-t450-template))

(define %lenovo-thinkpad-t450-template
  (os-template
   (title "Lenovo ThinkPad T450 hardware")
   (firmwares (list iwlwifi-firmware))
   (packages (list throttled))
   (services (list
              (os-template-service
               (type 'edit)
               (kind sddm-service-type)
               (action (lambda (config)
                         (sddm-configuration
                          (inherit config)
                          (xorg-configuration
                           (xorg-configuration
                            (extra-config
                             `( "Section \"InputClass\"\n"
                                "   Identifier \"touchpad\"\n"
                                "   Driver \"libinput\"\n"
                                "   MatchIsTouchpad \"on\"\n"
                                "   Option \"Tapping\" \"on\"\n"
                                "EndSection\n"
                                "\n")))))
                         )))))))