summaryrefslogtreecommitdiff
path: root/.config/guix/kvasir.scm
diff options
context:
space:
mode:
Diffstat (limited to '.config/guix/kvasir.scm')
-rw-r--r--.config/guix/kvasir.scm37
1 files changed, 21 insertions, 16 deletions
diff --git a/.config/guix/kvasir.scm b/.config/guix/kvasir.scm
index 3260a28..5d1ac4c 100644
--- a/.config/guix/kvasir.scm
+++ b/.config/guix/kvasir.scm
@@ -38,19 +38,24 @@
"69a3593b-12bd-40ad-a932-007674a8cfe8"))
(type "ext4")) %base-file-systems))))
-(define home
- (home-environment
- (packages
- `(,@desktop-packages
- ,@program-packages))
-
- (services
- `(,@xdg-service
- ,@shell-service
- ,@ssh-service
- ,@gpg-service
- ,@base-services
- ,@xmodmap-service))))
-
-
-(if (getenv "RUNNING_GUIX_HOME") home system)
+(define MiB (expt 2 20))
+(define GiB (expt 2 30))
+
+(image
+ (format 'disk-image)
+ (operating-system system)
+ (partitions
+ (list
+ (partition
+ (size (* 40 MiB))
+ (offset (* 1024 1024))
+ (label "GNU-ESP")
+ (file-system "vfat")
+ (flags '(esp))
+ (initializer (gexp initialize-efi-partition)))
+ (partition
+ (size (* 28 GiB))
+ (label root-label)
+ (file-system "ext4")
+ (flags '(boot))
+ (initializer (gexp initialize-root-partition))))))