99 lines
3.2 KiB
Scheme
99 lines
3.2 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)
|
||
|
(guix packages)
|
||
|
(gnu services)
|
||
|
(gnu packages file-systems)
|
||
|
(nongnu packages linux)
|
||
|
(nongnu system linux-initrd))
|
||
|
|
||
|
|
||
|
(use-service-modules cups desktop networking ssh xorg linux)
|
||
|
(use-package-modules linux )
|
||
|
(define my-kernel linux-6.1)
|
||
|
(define my-zfs
|
||
|
(package
|
||
|
(inherit zfs)
|
||
|
(arguments
|
||
|
(cons* #:linux my-kernel
|
||
|
(package-arguments zfs)))))
|
||
|
|
||
|
(operating-system
|
||
|
(kernel my-kernel)
|
||
|
(initrd microcode-initrd)
|
||
|
(firmware (list linux-firmware))
|
||
|
|
||
|
|
||
|
(locale "en_US.utf8")
|
||
|
(timezone "America/Manaus")
|
||
|
(keyboard-layout (keyboard-layout "us"))
|
||
|
(host-name "lisp-machine")
|
||
|
(kernel-loadable-modules (list (list my-zfs "module")))
|
||
|
|
||
|
;; The list of user accounts ('root' is implicit).
|
||
|
(users (cons* (user-account
|
||
|
(name "hashirama")
|
||
|
(comment "Hashirama")
|
||
|
(group "users")
|
||
|
(home-directory "/home/hashirama")
|
||
|
(supplementary-groups '("wheel" "netdev" "audio" "video")))
|
||
|
%base-user-accounts))
|
||
|
|
||
|
;; Packages installed system-wide. Users can also install packages
|
||
|
;; under their own account: use 'guix search KEYWORD' to search
|
||
|
;; for packages and 'guix install PACKAGE' to install a package.
|
||
|
(packages (append (list
|
||
|
my-zfs
|
||
|
linux-firmware
|
||
|
(specification->package "nss-certs"))
|
||
|
%base-packages))
|
||
|
|
||
|
|
||
|
;; Below is the list of system services. To search for available
|
||
|
;; services, run 'guix system search KEYWORD' in a terminal.
|
||
|
(services
|
||
|
(append (list (simple-service 'my-zfs-loader
|
||
|
kernel-module-loader-service-type
|
||
|
'("zfs"))
|
||
|
(service xfce-desktop-service-type)
|
||
|
(set-xorg-configuration
|
||
|
(xorg-configuration (keyboard-layout keyboard-layout))))
|
||
|
%desktop-services))
|
||
|
|
||
|
(bootloader (bootloader-configuration
|
||
|
(bootloader grub-efi-bootloader)
|
||
|
(targets (list "/boot/efi"))
|
||
|
(keyboard-layout keyboard-layout)))
|
||
|
(swap-devices (list (swap-space
|
||
|
(target (uuid
|
||
|
"479519ae-93ba-4b0d-89ae-534d26273d51")))))
|
||
|
|
||
|
;; 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 "/boot/efi")
|
||
|
(device (uuid "CA39-E5B8"
|
||
|
'fat32))
|
||
|
(type "vfat"))
|
||
|
(file-system
|
||
|
(mount-point "/")
|
||
|
(device (uuid
|
||
|
"b3dfa6d0-c592-40e4-8c08-535deee429f9"
|
||
|
'ext4))
|
||
|
(type "ext4")) %base-file-systems)))
|
||
|
|
||
|
|
||
|
|
||
|
|