90 lines
2.9 KiB
Scheme
90 lines
2.9 KiB
Scheme
;; This is an operating system configuration generated
|
|
;; by the graphical installer.
|
|
|
|
(use-modules (gnu)
|
|
(gnu packages shells))
|
|
(use-service-modules
|
|
cups
|
|
desktop
|
|
networking
|
|
ssh
|
|
xorg)
|
|
|
|
;; Import nonfree linux module.
|
|
(use-modules (nongnu packages linux)
|
|
(nongnu system linux-initrd))
|
|
|
|
(operating-system
|
|
(kernel linux)
|
|
(initrd microcode-initrd)
|
|
(firmware (cons* iwlwifi-firmware
|
|
%base-firmware))
|
|
|
|
(locale "en_US.utf8")
|
|
(timezone "America/Chicago")
|
|
(keyboard-layout (keyboard-layout "us"))
|
|
(host-name "ThinkPad X1 Yoga")
|
|
(users (cons* (user-account
|
|
(name "me")
|
|
(comment "Me")
|
|
(group "users")
|
|
(shell (file-append fish "/bin/fish"))
|
|
(home-directory "/home/me")
|
|
(supplementary-groups
|
|
'("wheel" "netdev" "audio" "video")))
|
|
%base-user-accounts))
|
|
(packages
|
|
(append
|
|
(list (specification->package "awesome")
|
|
(specification->package "gnome-terminal")
|
|
(specification->package "xterm")
|
|
(specification->package "vim")
|
|
(specification->package "fish")
|
|
(specification->package "openssh")
|
|
(specification->package "firefox")
|
|
(specification->package "nss-certs"))
|
|
%base-packages))
|
|
(services
|
|
(append
|
|
(list (service cups-service-type)
|
|
(set-xorg-configuration
|
|
(xorg-configuration
|
|
(keyboard-layout keyboard-layout))))
|
|
(modify-services %desktop-services
|
|
(guix-service-type config => (guix-configuration
|
|
(inherit config)
|
|
(substitute-urls
|
|
(append (list "https://substitutes.nonguix.org")
|
|
%default-substitute-urls))
|
|
(authorized-keys
|
|
(append (list (plain-file "non-guix.pub"
|
|
"(public-key
|
|
(ecc
|
|
(curve Ed25519)
|
|
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)
|
|
)
|
|
)"))
|
|
%default-authorized-guix-keys)))))))
|
|
(bootloader
|
|
(bootloader-configuration
|
|
(bootloader grub-efi-bootloader)
|
|
(targets (list "/boot/efi"))
|
|
(keyboard-layout keyboard-layout)))
|
|
(mapped-devices
|
|
(list (mapped-device
|
|
(source
|
|
(uuid "87297839-2f3d-4a2b-857a-6ee1ef2b8c14"))
|
|
(target "cryptroot")
|
|
(type luks-device-mapping))))
|
|
(file-systems
|
|
(cons* (file-system
|
|
(mount-point "/")
|
|
(device "/dev/mapper/cryptroot")
|
|
(type "btrfs")
|
|
(dependencies mapped-devices))
|
|
(file-system
|
|
(mount-point "/boot/efi")
|
|
(device (uuid "3E99-95A0" 'fat32))
|
|
(type "vfat"))
|
|
%base-file-systems)))
|