summaryrefslogtreecommitdiff
path: root/px/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'px/hardware')
-rw-r--r--px/hardware/lenovo.scm32
-rw-r--r--px/hardware/raspberrypi.scm28
2 files changed, 60 insertions, 0 deletions
diff --git a/px/hardware/lenovo.scm b/px/hardware/lenovo.scm
new file mode 100644
index 0000000..89a670a
--- /dev/null
+++ b/px/hardware/lenovo.scm
@@ -0,0 +1,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")))))
+ )))))))
diff --git a/px/hardware/raspberrypi.scm b/px/hardware/raspberrypi.scm
new file mode 100644
index 0000000..2dbde25
--- /dev/null
+++ b/px/hardware/raspberrypi.scm
@@ -0,0 +1,28 @@
+(define-module (px hardware raspberrypi)
+ #:use-module (gnu packages admin)
+ #:use-module (gnu packages linux)
+ #:use-module (gnu system)
+ #:use-module (nongnu packages linux)
+ #:use-module (px system os)
+ #:use-module (px packages linux)
+ #:use-module (px services device)
+ #:export (%raspberry-pi-4-template
+ %seeed-reterminal-template))
+
+(define %raspberry-pi-4-template
+ (os-template
+ (title "RaspberryPi 4 hardware")
+ (packages (list cloud-utils
+ evtest))
+ (services (list (os-template-service
+ (type 'add)
+ (kind btuart-service-type))))
+ (firmwares (list raspberrypi-firmware
+ brcm80211-firmware
+ bluez-firmware))))
+
+
+(define %seeed-reterminal-template
+ (os-template
+ (title "SEEED reTerminal hardware")
+ (packages (list seeed-reterminal-dtoverlays))))