2023-07-10 23:14:40 +02:00
|
|
|
;; -*- mode: scheme; -*-
|
2017-07-22 03:36:01 +02:00
|
|
|
;; This is an operating system configuration template
|
|
|
|
;; for a "desktop" setup with GNOME and Xfce.
|
|
|
|
|
2023-07-10 23:14:40 +02:00
|
|
|
(use-modules (gnu)
|
|
|
|
(gnu system nss)
|
|
|
|
(guix utils)
|
|
|
|
(nongnu packages linux)
|
|
|
|
(nongnu system linux-initrd)
|
|
|
|
(srfi srfi-1))
|
|
|
|
(use-service-modules desktop xorg dns networking)
|
2017-07-22 03:36:01 +02:00
|
|
|
(use-package-modules bootloaders certs shells ssh version-control emacs vim wm freedesktop xorg fontutils)
|
|
|
|
|
|
|
|
(operating-system
|
2023-07-10 23:14:40 +02:00
|
|
|
(host-name "apnx")
|
2017-07-22 03:36:01 +02:00
|
|
|
(timezone "Europe/Ljubljana")
|
2023-07-10 23:14:40 +02:00
|
|
|
(locale "sl_SI.utf8")
|
|
|
|
|
|
|
|
;; Use the UEFI variant of GRUB with the EFI System
|
|
|
|
;; Partition mounted on /boot/efi.
|
|
|
|
(bootloader (bootloader-configuration
|
|
|
|
(bootloader grub-efi-bootloader)
|
|
|
|
(targets '("/boot/efi"))))
|
|
|
|
|
|
|
|
(kernel linux)
|
|
|
|
(initrd microcode-initrd)
|
|
|
|
(firmware (list linux-firmware))
|
2017-07-22 03:36:01 +02:00
|
|
|
|
|
|
|
(file-systems (cons* (file-system
|
2023-07-10 23:14:40 +02:00
|
|
|
(device "/dev/sda3")
|
|
|
|
(mount-point "/")
|
|
|
|
(type "btrfs")
|
|
|
|
(options "compress"))
|
|
|
|
(file-system
|
|
|
|
(device "/dev/sda2")
|
|
|
|
(mount-point "/boot/efi")
|
|
|
|
(type "vfat"))
|
|
|
|
%base-file-systems))
|
|
|
|
|
|
|
|
(swap-devices
|
|
|
|
(list (swap-space (target "/swapfile"))))
|
2017-07-22 03:36:01 +02:00
|
|
|
|
|
|
|
(users (cons* (user-account
|
2023-07-10 23:14:40 +02:00
|
|
|
(name "g1smo")
|
|
|
|
(comment "Yuri")
|
|
|
|
(group "users")
|
|
|
|
(supplementary-groups '("wheel" "netdev"
|
|
|
|
"audio" "video" "dialout"))
|
|
|
|
(home-directory "/home/g1smo"))
|
|
|
|
(user-account
|
|
|
|
(name "bask")
|
|
|
|
(comment "Balkan Anarchist Bookfair")
|
2017-07-22 03:36:01 +02:00
|
|
|
(group "users")
|
|
|
|
(supplementary-groups '("wheel" "netdev"
|
2023-07-10 23:14:40 +02:00
|
|
|
"audio" "video" "dialout"))
|
|
|
|
(home-directory "/home/bask"))
|
2017-07-22 03:36:01 +02:00
|
|
|
%base-user-accounts))
|
|
|
|
|
|
|
|
;; This is where we specify system-wide packages.
|
|
|
|
(packages (cons* nss-certs ;for HTTPS access
|
|
|
|
zsh ;Z shell
|
|
|
|
openssh
|
|
|
|
git
|
|
|
|
emacs
|
|
|
|
vim
|
|
|
|
bspwm
|
|
|
|
libinput
|
|
|
|
xf86-input-libinput
|
|
|
|
freetype
|
|
|
|
%base-packages))
|
|
|
|
|
|
|
|
;; Add GNOME and/or Xfce---we can choose at the log-in
|
|
|
|
;; screen with F1. Use the "desktop" services, which
|
|
|
|
;; include the X11 log-in service, networking with Wicd,
|
|
|
|
;; and more.
|
|
|
|
|
2023-07-10 23:14:40 +02:00
|
|
|
(services (cons* (service xfce-desktop-service-type)
|
|
|
|
(service gnome-desktop-service-type)
|
|
|
|
(service dnsmasq-service-type
|
|
|
|
(dnsmasq-configuration
|
|
|
|
(cache-size 1500)))
|
|
|
|
(service network-manager-service-type
|
|
|
|
(network-manager-configuration
|
|
|
|
(dns "dnsmasq")))
|
|
|
|
(service pam-limits-service-type
|
|
|
|
(list
|
|
|
|
(pam-limits-entry "@audio" 'both 'rtprio 99)
|
|
|
|
(pam-limits-entry "@audio" 'both 'memlock 'unlimited)))
|
|
|
|
|
|
|
|
(remove
|
|
|
|
(lambda (service)
|
|
|
|
(eq? network-manager-service-type (service-kind service)))
|
|
|
|
%desktop-services)))
|
2017-07-22 03:36:01 +02:00
|
|
|
|
|
|
|
;; Allow resolution of '.local' host names with mDNS.
|
|
|
|
(name-service-switch %mdns-host-lookup-nss))
|