From 26429081fd3409d6e493f9a45a8e603b6d2e47d7 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Mon, 31 Oct 2022 23:40:08 +0100 Subject: System configuration: break out mapped-devices --- system-configuration.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/system-configuration.scm b/system-configuration.scm index 04e40b5..a3938c2 100644 --- a/system-configuration.scm +++ b/system-configuration.scm @@ -122,6 +122,11 @@ (define swap-devices `(,swap-sda3-record)) +(define mapped-devices + `(,(mapped-device (source (uuid "887ac37f-2919-41a0-a62a-e1ff5ea2d6cc")) + (target "aisaka-root") + (type luks-device-mapping)))) + (operating-system (locale locale) (timezone timezone) (keyboard-layout keyboard-layout) @@ -131,9 +136,7 @@ (services services) (bootloader bootloader-record) (swap-devices swap-devices) - (mapped-devices `(,(mapped-device (source (uuid "887ac37f-2919-41a0-a62a-e1ff5ea2d6cc")) - (target "aisaka-root") - (type luks-device-mapping)))) + (mapped-devices mapped-devices) (file-systems (cons* (file-system (mount-point "/") (device "/dev/mapper/aisaka-root") (type "btrfs") -- cgit v1.2.3