~ruther/guix-config

b31b35a23ca5fd82d3e4438e453ee386700c0a00 — Rutherther 5 days ago e8836c1
feat: add swap
1 files changed, 21 insertions(+), 11 deletions(-)

M config.scm
M config.scm => config.scm +21 -11
@@ 158,6 158,20 @@
                   dbus-root-service-type
                   (list blueman))))

(define crypted-root
  (mapped-device
   (source (uuid "55787ccb-decb-46b6-a190-6597dff68c68"))
   (target "cryptedguix")
   (type luks-device-mapping)))

(define root-file-system
  (file-system
   (device (file-system-label "guix-root"))
   ;; (device "/dev/mapper/cryptedguix")
   (mount-point "/")
   (type "ext4")
   (dependencies (list crypted-root))))

(define %ruther/base-laptop-os
  (operating-system
    (kernel linux-6.17)


@@ 185,29 199,25 @@
    ;; Specify a mapped device for the encrypted root partition.
    ;; The UUID is that returned by 'cryptsetup luksUUID'.
    (mapped-devices
     (list (mapped-device
            (source (uuid "55787ccb-decb-46b6-a190-6597dff68c68"))
            (target "cryptedguix")
            (type luks-device-mapping))))
     (list crypted-root))

    (file-systems (append
                   (list (file-system
                           (device (file-system-label "guix-root"))
			                     ;; (device "/dev/mapper/cryptedguix")
                           (mount-point "/")
                           (type "ext4")
                           (dependencies mapped-devices))
                   (list root-file-system
                         (file-system
                           (device (file-system-label "BOOT"))
                           (mount-point "/boot")
                           (type "vfat")))
                   %base-file-systems))

    (swap-devices
     (list (swap-space
            (target "/swapfile")
            (dependencies (list root-file-system)))))

    ;; Create user `bob' with `alice' as its initial password.
    (users (cons* %ruther/user
                  %base-user-accounts))

    ;; Add the `students' group
    (groups %base-groups)

    (privileged-programs