Configure elogind service

This is required to create /run/user/$UID on login. Without that
directory the Guix on-first-login script fails to start the user
shepherd service.
This commit is contained in:
Ray Miller 2024-11-30 11:23:25 +00:00
parent 58e379eda7
commit cf218520cb

View file

@ -2,7 +2,7 @@
;; for a "bare bones" setup, with no X11 display server. ;; for a "bare bones" setup, with no X11 display server.
(use-modules (gnu)) (use-modules (gnu))
(use-service-modules networking ssh) (use-service-modules networking ssh desktop)
(use-package-modules screen ssh) (use-package-modules screen ssh)
(operating-system (operating-system
@ -50,10 +50,10 @@ root ALL=(ALL) ALL
;; Add services to the baseline: static networking and an SSH server. ;; Add services to the baseline: static networking and an SSH server.
(services (append (list (simple-service 'add-extra-hosts (services (append (list (simple-service 'add-extra-hosts
hosts-service-type hosts-service-type
(list (host "192.168.1.110" "limiting-factor" '("forge.1729.org.uk")) (list (host "192.168.1.110" "limiting-factor" '("forge.1729.org.uk"))
(host "192.168.1.167" "cargo-cult" '()))) (host "192.168.1.167" "cargo-cult" '())))
(service static-networking-service-type (service static-networking-service-type
(list (static-networking (list (static-networking
(addresses (addresses
(list (network-address (list (network-address
@ -72,5 +72,6 @@ root ALL=(ALL) ALL
`(("ray" ,(local-file "./files/authorized_keys")) `(("ray" ,(local-file "./files/authorized_keys"))
("root" ,(local-file "./files/authorized_keys")))) ("root" ,(local-file "./files/authorized_keys"))))
(openssh openssh-sans-x) (openssh openssh-sans-x)
(port-number 22)))) (port-number 22)))
(service elogind-service-type))
%base-services))) %base-services)))