From df4d243fc3c60be045f8c8d973ebcc970923326d Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Tue, 22 Jul 2025 08:40:46 +0200 Subject: [PATCH] expand environment variable based on daviwil example --- snamellit/common.scm | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/snamellit/common.scm b/snamellit/common.scm index 155971d..2272eef 100644 --- a/snamellit/common.scm +++ b/snamellit/common.scm @@ -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