dotfiles/guix/vm/config.scm

92 lines
2.7 KiB
Scheme
Raw Normal View History

2021-05-15 11:15:17 +01:00
;; This is an operating system configuration generated
;; by the graphical installer.
(use-modules (gnu))
(use-modules (nongnu packages linux)
(nongnu system linux-initrd))
(use-modules (gnu packages version-control))
(use-modules (gnu packages gnuzilla))
(use-modules (gnu packages vim))
(use-modules (gnu packages ssh))
(use-service-modules desktop networking ssh xorg)
2021-06-19 00:51:06 +01:00
(use-service-modules spice)
2021-05-15 11:15:17 +01:00
(define %xorg-libinput-config
"Section \"InputClass\"
Identifier \"Touchpads\"
Driver \"libinput\"
MatchDevicePath \"/dev/input/event*\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
Option \"TappingDrag\" \"on\"
Option \"DisableWhileTyping\" \"on\"
Option \"MiddleEmulation\" \"on\"
Option \"ScrollMethod\" \"twofinger\"
EndSection
Section \"InputClass\"
Identifier \"Keyboards\"
Driver \"libinput\"
MatchDevicePath \"/dev/input/event*\"
MatchIsKeyboard \"on\"
EndSection
")
(operating-system
(locale "en_GB.utf8")
(timezone "Europe/London")
(keyboard-layout (keyboard-layout "pl"))
2022-08-14 00:06:35 +01:00
(host-name "guix")
2021-05-15 11:15:17 +01:00
(users (cons* (user-account
(name "cyryl")
2022-08-14 00:06:35 +01:00
(comment "Cyryl")
2021-05-15 11:15:17 +01:00
(group "users")
(home-directory "/home/cyryl")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "i3-wm")
(specification->package "i3status")
(specification->package "dmenu")
(specification->package "st")
(specification->package "nss-certs")
2022-08-14 00:06:35 +01:00
git icecat vim openssh
)
2021-05-15 11:15:17 +01:00
%base-packages))
(services
(append
(list (service gnome-desktop-service-type)
2021-06-19 00:51:06 +01:00
(spice-vdagent-service)
2021-05-15 11:15:17 +01:00
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout)
2021-06-19 00:51:06 +01:00
(extra-config (list %xorg-libinput-config))))
)
2021-05-15 11:15:17 +01:00
%desktop-services))
2022-08-14 00:06:35 +01:00
(bootloader
2021-05-15 11:15:17 +01:00
(bootloader-configuration
2022-08-14 00:06:35 +01:00
(bootloader grub-efi-bootloader)
(target "/boot/efi")
2021-05-15 11:15:17 +01:00
(keyboard-layout keyboard-layout)))
(mapped-devices
(list (mapped-device
(source
2022-08-14 00:06:35 +01:00
(uuid "3d2a3370-6ae8-453d-bb91-bd2929f013ee"))
2021-05-15 11:15:17 +01:00
(target "cryptroot")
(type luks-device-mapping))))
(file-systems
(cons* (file-system
2022-08-14 00:06:35 +01:00
(mount-point "/boot/efi")
(device (uuid "A62A-8C37" 'fat32))
(type "vfat"))
(file-system
2021-05-15 11:15:17 +01:00
(mount-point "/")
(device "/dev/mapper/cryptroot")
2022-03-02 21:56:21 +00:00
(type "ext4")
2021-05-15 11:15:17 +01:00
(dependencies mapped-devices))
%base-file-systems)))