2023-11-28 21:38:47 +00:00
|
|
|
;; -*- mode: guix-scheme -*-
|
|
|
|
|
2023-11-28 22:38:08 +00:00
|
|
|
(use-modules
|
|
|
|
(gnu)
|
2023-11-29 12:43:06 +00:00
|
|
|
(gnu image)
|
2023-11-28 22:38:08 +00:00
|
|
|
(gnu services avahi)
|
|
|
|
(gnu services base)
|
|
|
|
(gnu services networking)
|
|
|
|
(gnu services pm)
|
|
|
|
(gnu system nss))
|
2023-11-28 21:38:47 +00:00
|
|
|
|
2023-11-29 13:22:51 +00:00
|
|
|
(use-service-modules desktop
|
|
|
|
xorg)
|
2023-11-28 21:38:47 +00:00
|
|
|
|
|
|
|
(use-package-modules bootloaders
|
|
|
|
certs
|
|
|
|
emacs
|
2023-11-29 12:47:06 +00:00
|
|
|
emacs-xyz
|
2023-11-29 12:47:22 +00:00
|
|
|
terminals
|
2023-11-28 21:38:47 +00:00
|
|
|
wm
|
2023-11-29 12:01:54 +00:00
|
|
|
xorg)
|
2023-11-28 21:38:47 +00:00
|
|
|
|
|
|
|
(operating-system
|
|
|
|
(host-name "ziltis-machine")
|
|
|
|
(timezone "Europe/Berlin")
|
|
|
|
(locale "de_DE.utf8")
|
2023-11-29 13:08:49 +00:00
|
|
|
(keyboard-layout
|
|
|
|
(keyboard-layout "de" #:options '("caps:swapescape")))
|
2023-11-28 22:38:08 +00:00
|
|
|
(bootloader
|
|
|
|
(bootloader-configuration
|
|
|
|
(bootloader grub-efi-bootloader)
|
|
|
|
(targets
|
|
|
|
'("/boot/efi"))
|
|
|
|
(keyboard-layout keyboard-layout)))
|
|
|
|
(file-systems
|
|
|
|
(cons*
|
|
|
|
(file-system
|
2023-11-29 13:20:56 +00:00
|
|
|
(device "/dev/disk/by-partlabel/EFI\\x20System\\x20Partition")
|
2023-11-28 22:38:08 +00:00
|
|
|
(mount-point "/boot/efi")
|
|
|
|
(type "vfat"))
|
|
|
|
(file-system
|
2023-11-29 13:20:09 +00:00
|
|
|
(device "/dev/disk/by-partlabel/guix-root")
|
2023-11-29 12:42:36 +00:00
|
|
|
(mount-point "/")
|
|
|
|
(type "xfs"))
|
2023-11-28 22:38:08 +00:00
|
|
|
%base-file-systems))
|
|
|
|
(swap-devices
|
|
|
|
(list
|
|
|
|
(swap-space
|
2023-11-29 13:20:09 +00:00
|
|
|
(target "/dev/disk/by-partlabel/swap")
|
2023-11-28 22:38:08 +00:00
|
|
|
(discard? #t))))
|
|
|
|
(users
|
2023-11-29 12:01:54 +00:00
|
|
|
(cons*
|
|
|
|
(user-account
|
|
|
|
(name "zilti")
|
|
|
|
(group "users")
|
|
|
|
(supplementary-groups
|
|
|
|
'("wheel"
|
2023-11-29 12:42:36 +00:00
|
|
|
"netdev"
|
2023-11-29 12:01:54 +00:00
|
|
|
"seat"
|
|
|
|
"audio"
|
|
|
|
"video"
|
|
|
|
"libvirt")))
|
2023-11-28 22:38:08 +00:00
|
|
|
%base-user-accounts))
|
|
|
|
(packages
|
|
|
|
(append
|
2023-11-29 12:03:07 +00:00
|
|
|
(specifications->packages
|
|
|
|
(list
|
2023-11-29 12:48:49 +00:00
|
|
|
"nss-certs"
|
|
|
|
"emacs"
|
|
|
|
"emacs-desktop-environment"
|
2023-11-29 12:49:24 +00:00
|
|
|
"git"
|
2023-11-29 12:48:49 +00:00
|
|
|
"kitty"
|
|
|
|
"swayfx"))
|
2023-11-28 22:38:08 +00:00
|
|
|
%base-packages))
|
|
|
|
(services
|
|
|
|
(append
|
|
|
|
(modify-services
|
|
|
|
%desktop-services
|
|
|
|
(delete login-service-type)
|
|
|
|
(delete mingetty-service-type))
|
|
|
|
(list
|
|
|
|
(service network-manager-service-type)
|
|
|
|
(service wpa-supplicant-service-type)
|
|
|
|
(service ntp-service-type)
|
2023-11-29 13:22:51 +00:00
|
|
|
(service gdm-service-type
|
|
|
|
(gdm-configuration
|
|
|
|
(wayland? #t)))
|
2023-11-28 22:38:08 +00:00
|
|
|
(service avahi-service-type)
|
|
|
|
(service elogind-service-type)
|
|
|
|
(service seatd-service-type)
|
|
|
|
(service polkit-service-type)
|
|
|
|
(service polkit-wheel-service)
|
|
|
|
(service upower-service-type)
|
|
|
|
(service tlp-service-type)
|
|
|
|
(service thermald-service-type
|
|
|
|
(thermald-configuration
|
|
|
|
(adaptive? #t)))
|
|
|
|
(service udisks-service-type)
|
|
|
|
(service bluetooth-service-type)
|
|
|
|
(service inputattach-service-type)
|
|
|
|
(service fstrim-service-type)
|
|
|
|
(service earlyoom-service-type
|
|
|
|
(earlyoom-configuration
|
|
|
|
(minimum-available-memory 5)
|
|
|
|
(minimum-free-swap 5)))
|
|
|
|
(service greetd-service-type
|
|
|
|
(greetd-configuration
|
|
|
|
(greeter-supplementary-groups
|
|
|
|
(list "video" "input" "seat"))
|
|
|
|
(terminals
|
|
|
|
(list
|
|
|
|
(greetd-terminal-configuration
|
|
|
|
(terminal-vt "1")
|
|
|
|
(terminal-switch #t)
|
|
|
|
(default-session-command
|
|
|
|
(greetd-wlgreet-sway-session
|
|
|
|
(sway 'swayfx)
|
|
|
|
;; (sway-configuration #f)
|
|
|
|
)))))))
|
|
|
|
(service fprintd-service-type)
|
|
|
|
(service screen-locker-service-type
|
|
|
|
(screen-locker-configuration
|
|
|
|
(name "swaylock")
|
|
|
|
(program
|
|
|
|
(file-append swaylock-effects "/bin/swaylock"))
|
|
|
|
(using-setuid? #f)))
|
|
|
|
(service libvirt-service-type
|
|
|
|
(libvirt-configuration
|
|
|
|
(unix-sock-group "libvirt"))))))
|
2023-11-28 21:38:47 +00:00
|
|
|
(name-service-switch %mdns-host-lookup-nss))
|