hosts/kirsty: update services
Switch to seatd & greetd. Switch to chrony. Drop custom swaylock service.
This commit is contained in:
parent
e08a4ae5ad
commit
7f25694251
1 changed files with 32 additions and 8 deletions
|
@ -11,11 +11,12 @@
|
|||
#:use-module (gnu services security-token)
|
||||
#:use-module (gnu services sound)
|
||||
#:use-module (gnu services virtualization)
|
||||
#:use-module (gnu services xorg)
|
||||
#:use-module (gnu system locale)
|
||||
#:use-module (gnu system setuid)
|
||||
#:use-module (nongnu packages linux)
|
||||
#:use-module (nongnu system linux-initrd)
|
||||
#:use-module (services swaylock))
|
||||
#:use-module (config base))
|
||||
|
||||
(define host-dir (dirname (module-filename (current-module))))
|
||||
|
||||
|
@ -66,7 +67,7 @@
|
|||
(name "timotej")
|
||||
(comment "Timotej Lazar")
|
||||
(group "users")
|
||||
(supplementary-groups '("cdrom" "kvm" "netdev" "wheel"))
|
||||
(supplementary-groups '("audio" "cdrom" "dialout" "kvm" "netdev" "seat" "wheel"))
|
||||
(home-directory "/home/timotej"))
|
||||
%base-user-accounts))
|
||||
|
||||
|
@ -78,28 +79,51 @@
|
|||
(extra-special-file "/usr/bin/env" (file-append coreutils "/bin/env"))
|
||||
(extra-special-file "/bin/bash" (file-append bash "/bin/bash"))
|
||||
|
||||
(service seatd-service-type)
|
||||
(service greetd-service-type
|
||||
(greetd-configuration
|
||||
(greeter-supplementary-groups '("input" "video"))
|
||||
(terminals
|
||||
(map (lambda (tty)
|
||||
(greetd-terminal-configuration
|
||||
(terminal-vt tty)
|
||||
(terminal-switch #t)))
|
||||
'("1" "2" "3" "4" "5" "6")))))
|
||||
|
||||
;; Networking.
|
||||
(service network-manager-service-type)
|
||||
(service wpa-supplicant-service-type)
|
||||
(service modem-manager-service-type)
|
||||
(service usb-modeswitch-service-type)
|
||||
(service openntpd-service-type
|
||||
(openntpd-configuration (servers '("pool.ntp.org"))))
|
||||
(service tor-service-type)
|
||||
(service tor-service-type
|
||||
(tor-configuration
|
||||
(config-file (plain-file "torrc" "SocksPort 127.0.0.1:9050 IsolateDestAddr"))))
|
||||
|
||||
;; Desktop.
|
||||
(service elogind-service-type)
|
||||
(service udisks-service-type)
|
||||
(service upower-service-type)
|
||||
(service alsa-service-type)
|
||||
(service pcscd-service-type)
|
||||
(service swaylock-service-type)
|
||||
|
||||
(service screen-locker-service-type
|
||||
(screen-locker-configuration
|
||||
(name "swaylock")
|
||||
(program (file-append swaylock "/bin/swaylock"))
|
||||
(using-pam? #t)
|
||||
(using-setuid? #f)))
|
||||
|
||||
(service qemu-binfmt-service-type
|
||||
(qemu-binfmt-configuration
|
||||
(platforms (lookup-qemu-platforms "arm" "aarch64" "mips64el" "x86"))))
|
||||
|
||||
(modify-services %base-services
|
||||
(modify-services (base-services)
|
||||
(delete login-service-type)
|
||||
(delete mingetty-service-type)
|
||||
(delete mingetty-service-type)
|
||||
(delete mingetty-service-type)
|
||||
(delete mingetty-service-type)
|
||||
(delete mingetty-service-type)
|
||||
(delete mingetty-service-type)
|
||||
;; Don’t use up all CPU (and RAM) when compiling.
|
||||
(guix-service-type config =>
|
||||
(guix-configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue