summaryrefslogtreecommitdiff
path: root/installer/system.scm
diff options
context:
space:
mode:
Diffstat (limited to 'installer/system.scm')
-rw-r--r--installer/system.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/installer/system.scm b/installer/system.scm
new file mode 100644
index 0000000..af791c5
--- /dev/null
+++ b/installer/system.scm
@@ -0,0 +1,23 @@
+(use-modules (home-config base-system)
+ (gnu))
+
+(operating-system
+ (inherit base-operating-system)
+ (host-name "SED_HOSTNAME")
+
+ (mapped-devices (list (mapped-device
+ (source (uuid
+ "SED_CRYPT_UUID"))
+ (target "root")
+ (type luks-device-mapping))))
+
+ (file-systems (cons* (file-system
+ (mount-point "/")
+ (device "/dev/mapper/root")
+ (type "btrfs")
+ (dependencies mapped-devices))
+ (file-system
+ (mount-point "/boot/efi")
+ (device (uuid "SED_EFI_UUID"
+ 'fat32))
+ (type "vfat")) %base-file-systems)))