While attempting to provide my Wayland .desktop
session files as arguments to the tuigreet
greeter, I discovered the resource derivation /nix/store/prh7hiwpvhza4sj4di6hg1zys880gwih-desktops/
which includes files for both Wayland and Xorg sessions.
I’m curious if there’s a way to access this via the config
argument, or through a comparable approach, especially since I couldn’t find any relevant information in the documentation.
{ config, lib, pkgs, ... }:
let
sessionPackages = config.services.xserver.displayManager.sessionPackages;
sessionPackagesWithWaylandSessions = map (pkg: "${pkg}/share/wayland-sessions") sessionPackages;
sessionPackagesPath = lib.concatStringsSep ":" sessionPackagesWithWaylandSessions;
in
{
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --user-menu -t -r -s ${sessionPackagesPath}";
user = "greeter";
};
# ...
};
};
# ...
}