summaryrefslogtreecommitdiff
path: root/system-configuration.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marekpasnikowski@protonmail.com>2023-02-03 20:00:46 +0100
committerMarek Paśnikowski <marekpasnikowski@protonmail.com>2023-02-03 20:25:04 +0100
commitb51aa15c6399c058d82c6af5c3a5886622cab371 (patch)
treed08c500d8457ee288ed77525e1ff508c719871e3 /system-configuration.scm
parent8502f83312580ebb56e82a1235a50f46fd1e4f06 (diff)
Transfer Trezord Packages to a Service
Diffstat (limited to 'system-configuration.scm')
-rw-r--r--system-configuration.scm17
1 files changed, 14 insertions, 3 deletions
diff --git a/system-configuration.scm b/system-configuration.scm
index eb0d170..25606c8 100644
--- a/system-configuration.scm
+++ b/system-configuration.scm
@@ -37,11 +37,22 @@
specification->package+output)
'("netcat-openbsd"
"nss-certs"
- "ntfs-3g"
- "trezord"
- "trezord-udev-rules"))
+ "ntfs-3g"))
%base-packages))
(services (cons* ssh-service
+ (service
+ (service-type
+ (name 'trezor-system-packages)
+ (extensions
+ (list
+ (service-extension profile-service-type
+ (lambda (_)
+ (map specification->package
+ (list
+ "trezord"
+ "trezord-udev-rules"))))))
+ (description "TrezorD packages needed by the system.")
+ (default-value #f)))
(service cups-service-type
(cups-configuration (extensions `(,cups-filters
,epson-inkjet-printer-escpr))