dotfiles/guix-config/system/anaconda.scm

40 lines
1.5 KiB
Scheme

(define-module (guix-config system anaconda)
#:use-module (gnu)
#:use-module (guix transformations)
#:use-module (guix packages)
#:use-module (gnu packages linux)
#:use-module (guix-config system base-system))
(define tune
(options->transformation '((tune . "alderlake"))))
(operating-system
(inherit base-system)
(host-name "anaconda")
(kernel (tune (package
(inherit linux-libre)
(properties '((tunable? . #t))))))
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))
(keyboard-layout (keyboard-layout "eu,ru"
#:options '("grp:alt_shift_toggle")))))
(mapped-devices (list (mapped-device
(source (uuid
"c40078f6-8a49-4353-a047-48e8666c207e"))
(target "guix-luks")
(type luks-device-mapping))))
;; The list of file systems that get "mounted". The unique
;; file system identifiers there ("UUIDs") can be obtained
;; by running 'blkid' in a terminal.
(file-systems (cons* (file-system
(mount-point "/")
(device "/dev/mapper/guix-luks")
(type "btrfs")
(dependencies mapped-devices))
(file-system
(mount-point "/boot/efi")
(device (uuid "8183-EB03"
'fat32))
(type "vfat")) %base-file-systems)))