summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Paśnikowski <marekpasnikowski@protonmail.com>2022-10-31 23:40:08 +0100
committerMarek Paśnikowski <marekpasnikowski@protonmail.com>2022-10-31 23:40:08 +0100
commit26429081fd3409d6e493f9a45a8e603b6d2e47d7 (patch)
tree1ebcbf4c45cf3eb4159ad241f774c5e93001911f
parent3e0692484850f85dbf3ed05492f5297d74040d13 (diff)
System configuration: break out mapped-devices
-rw-r--r--system-configuration.scm9
1 files 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")