guixconfig/config.scm

129 lines
3.3 KiB
Scheme
Raw Normal View History

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-29 13:30:07 +00:00
(gnu services authentication)
2023-11-28 22:38:08 +00:00
(gnu services avahi)
(gnu services base)
2023-11-29 13:26:42 +00:00
(gnu services dbus)
2023-11-29 13:23:45 +00:00
(gnu services desktop)
2023-11-29 13:29:39 +00:00
(gnu services linux)
2023-11-28 22:38:08 +00:00
(gnu services networking)
(gnu services pm)
2023-11-29 13:30:36 +00:00
(gnu services virtualization)
2023-11-29 13:23:45 +00:00
(gnu services xorg)
2023-11-28 22:38:08 +00:00
(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 13:44:20 +00:00
fonts
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 13:37:53 +00:00
;; "seat"
2023-11-29 12:01:54 +00:00
"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 13:44:20 +00:00
"font-terminus"
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
2023-11-29 13:37:26 +00:00
;; (service elogind-service-type)
;; (service seatd-service-type)
2023-11-28 22:38:08 +00:00
(service tlp-service-type)
(service thermald-service-type
(thermald-configuration
(adaptive? #t)))
(service udisks-service-type)
(service bluetooth-service-type)
(service inputattach-service-type)
2023-11-29 13:37:26 +00:00
(service fstrim-service-type)
2023-11-28 22:38:08 +00:00
(service earlyoom-service-type
(earlyoom-configuration
(minimum-available-memory 5)
(minimum-free-swap 5)))
(service greetd-service-type
(greetd-configuration
(greeter-supplementary-groups
2023-11-29 13:38:50 +00:00
(list "video" "input" #;"seat"))
2023-11-28 22:38:08 +00:00
(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))