GUIX/config.scm

69 lines
2.7 KiB
Scheme

;; This is an operating system configuration generated
;; by the graphical installer.
;;
;; Once installation is complete, you can learn and modify
;; this file to tweak the system configuration, and pass it
;; to the 'guix system reconfigure' command to effect your
;; changes.
;; Indicate which modules to import to access the variables
;; used in this configuration.
(use-modules (gnu))
(use-service-modules cups desktop networking ssh xorg)
(operating-system
(locale "en_GB.utf8")
(timezone "Europe/Helsinki")
(keyboard-layout (keyboard-layout "fi"))
(host-name "leo")
;; The list of user accounts ('root' is implicit).
(users (cons* (user-account
(name "leo")
(comment "Leo Alho")
(group "users")
(home-directory "/home/leo")
(supplementary-groups '("wheel" "netdev" "audio" "video")))
%base-user-accounts))
;; Below is the list of system services. To search for available
;; services, run 'guix system search KEYWORD' in a terminal.
(services
(append (list (service gnome-desktop-service-type)
;; To configure OpenSSH, pass an 'openssh-configuration'
;; record as a second argument to 'service' below.
(service openssh-service-type)
(service cups-service-type)
(set-xorg-configuration
(xorg-configuration (keyboard-layout keyboard-layout))))
;; This is the default list of services we
;; are appending to.
(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 (local-file "./signing-key.pub"))
%default-authorized-guix-keys)))))))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets (list "/dev/vda"))
(keyboard-layout keyboard-layout)))
(swap-devices (list (swap-space
(target (uuid
"8726bddb-acc6-4b59-bd43-7d7ab025ffe8")))))
;; 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 (uuid
"b5a3ebf6-28b1-4e19-a1d4-f7e4b145b4ce"
'ext4))
(type "ext4")) %base-file-systems)))