home: services: Add home-graphical-session-service-type.

* modules/rosenthal/home/services/desktop.scm
(<home-graphical-session-configuration>): New data type.
(home-graphical-session-find-socket)
(home-graphical-session-shepherd-service): New procedures.
(home-graphical-session-service-type): New variable.
* modules/rosenthal/services/desktop.scm (%home-blueman-applet-shepherd)
(%home-fcitx5-shepherd, %home-mako-shepherd)
(%home-network-manager-applet-shepherd, %home-noctalia-shell-shepherd)
(%home-bb-auth-shepherd, %home-polkit-gnome-shepherd, %home-swaybg-shepherd)
(%home-waybar-shepherd): Depend on its shepherd service.
(home-mako-service-type, home-noctalia-shell-service-type)
(home-swaybg-service-type, home-waybar-service-type): Extend it.
(%rosenthal-desktop-home-services): No longer manually start Shepherd.
* modules/rosenthal/examples/dot-config/niri/config.kdl: Add screencasting
workaround and import environment variables into Shepherd.
This commit is contained in:
Hilton Chain committed 2026-04-10 22:31:58 +08:00
1 parent 1ada96ae7a
commit 5b3539c882
3 files changed
+208 -26

No files matched your search

@@ -3,6 +3,14 @@
// Check the wiki for a full description of the configuration:
// https://yalter.github.io/niri/Configuration:-Introduction
environment {
// Workaround for screencasting.
XDG_CURRENT_DESKTOP "niri:GNOME"
}
// See also `import_environment' in niri source (src/main.rs).
spawn-sh-at-startup "herd set-environment graphical-session XDG_CURRENT_DESKTOP=niri XDG_SESSION_TYPE=$XDG_SESSION_TYPE NIRI_SOCKET=$NIRI_SOCKET"
// Input device configuration.
// Find the full list of options on the wiki:
// https://yalter.github.io/niri/Configuration:-Input
@@ -268,9 +276,6 @@ layout {
// Add lines like this to spawn processes at startup.
// See the binds section below for more spawn examples.
// Start user Shepherd for Guix Home.
spawn-at-startup "shepherd"
// To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup:
// spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell"