.config/guix/system: Factor %ambrevar/file-systems.
parent
8818a4bf87
commit
ab7202a456
|
@ -180,6 +180,19 @@ StrictNodes 1")
|
|||
;; TODO: Can we default to name?
|
||||
(home-directory "/home/ambrevar")))
|
||||
|
||||
(define-public %ambrevar/file-systems
|
||||
(cons* (file-system
|
||||
(device (file-system-label "guix"))
|
||||
(mount-point "/")
|
||||
(type "btrfs")
|
||||
(options "subvol=rootfs,compress=zstd"))
|
||||
(file-system
|
||||
(mount-point "/tmp")
|
||||
(device "none")
|
||||
(type "tmpfs")
|
||||
(check? #f))
|
||||
%base-file-systems))
|
||||
|
||||
(define-public %ambrevar/default-os
|
||||
(operating-system
|
||||
(host-name "ambrevar-system")
|
||||
|
@ -197,12 +210,12 @@ StrictNodes 1")
|
|||
;; TODO: Remove all virtio modules?
|
||||
;; (initrd-modules (delete "virtio-rng" %base-initrd-modules))
|
||||
|
||||
(file-systems (cons*
|
||||
(file-system
|
||||
(device (file-system-label "guix"))
|
||||
(mount-point "/")
|
||||
(type "ext4"))
|
||||
%base-file-systems))
|
||||
;; WARNING: Each EFI system must set their own EFI partition!
|
||||
(file-systems (cons* (file-system
|
||||
(device (uuid "CAE6-BFFA" 'fat))
|
||||
(mount-point "/boot/efi")
|
||||
(type "vfat"))
|
||||
%ambrevar-file-systems))
|
||||
|
||||
(users (cons* %ambrevar/user
|
||||
%base-user-accounts))
|
||||
|
|
|
@ -52,17 +52,7 @@
|
|||
(device (uuid "CAE6-BFFA" 'fat))
|
||||
(mount-point "/boot/efi")
|
||||
(type "vfat"))
|
||||
(file-system
|
||||
(device (file-system-label "guix"))
|
||||
(mount-point "/")
|
||||
(type "btrfs")
|
||||
(options "subvol=rootfs,compress=zstd"))
|
||||
(file-system
|
||||
(mount-point "/tmp")
|
||||
(device "none")
|
||||
(type "tmpfs")
|
||||
(check? #f))
|
||||
%base-file-systems))
|
||||
%ambrevar-file-systems))
|
||||
|
||||
(packages (delete iw (operating-system-packages %ambrevar/default-os)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue