mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
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:
2 files changed
+62
-35
No files matched your search
@@ -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))))))
|
||||
Reference in new issue
Block a user