expand environment variable based on daviwil example

This commit is contained in:
Peter Tillemans 2025-07-22 08:40:46 +02:00
parent ee9dfa26db
commit df4d243fc3

View file

@ -296,12 +296,34 @@
(service home-dbus-service-type)
(service home-pipewire-service-type)
(simple-service 'my-xdg-data-dirs home-environment-variables-service-type
`(("XDG_DATA_DIRS" .
`(
;; sort hidden (dot) files first in ls listings
("LC_COLLATE" . "C")
;; Emacs is our editor
("VISUAL" . "emacsclient")
("EDITOR" . "emacsclient")
;; Make sure Flatpak apps are visible
("XDG_DATA_DIRS" .
,(add-folders-to-path
(or (getenv "XDG_DATA_DIRS") "")
'("/var/lib/flatpak/exports/share"
"/home/pti/.local/share/flatpak/exports/share"
"/home/pti/.guix-home/profile/share")))))
"/home/pti/.guix-home/profile/share"))))
;; Set Wayland-specific environment variables (taken from RDE)
("XDG_CURRENT_DESKTOP" . "sway")
("XDG_SESSION_TYPE" . "wayland")
("RTC_USE_PIPEWIRE" . "true")
("SDL_VIDEODRIVER" . "wayland")
("MOZ_ENABLE_WAYLAND" . "1")
("CLUTTER_BACKEND" . "wayland")
("ELM_ENGINE" . "wayland_egl")
("ECORE_EVAS_ENGINE" . "wayland-egl")
("QT_QPA_PLATFORM" . "wayland-egl"))
)
(simple-service 'additional-fonts-service
home-fontconfig-service-type
(list