services: zfs: Add zfs-configuration.

* modules/rosenthal/services/file-systems.scm (<zfs-configuration>): New data
type.
Enable auto mounting and disable volumes by default.
(zfs-shepherd-service): Rename to zfs-shepherd.
No longer use one-shot services.
(zfs-service-type): Adjust accordingly.
Set default value.

* modules/rosenthal/utils/transformations.scm (rosenthal-transformation-zfs):
Allow configuration.
This commit is contained in:
Hilton Chain committed 2025-10-20 13:44:15 +08:00
1 parent 9e2dc3254d
commit 1c3aed0cdb
2 files changed
+62 -35

No files matched your search

+2 -2
View File
@@ -67,7 +67,7 @@
(guix-configuration-guix config)))))))))))
;; NOTE: Booting from ZFS requires patching Guix.
(define* (rosenthal-transformation-zfs #:key boot?)
(define* (rosenthal-transformation-zfs #:key boot? (config (zfs-configuration)))
(lambda (os)
(operating-system
(inherit os)
@@ -81,5 +81,5 @@
'())
,@(operating-system-kernel-loadable-modules os)))
(services
(cons* (service zfs-service-type)
(cons* (service zfs-service-type config)
(operating-system-user-services os))))))