Other systems
Run the display manager from the release archive, or only the greeter, in the same lys-wm kiosk, under greetd.
Display manager from the archive
lys-login-<version>-<arch>-linux.tar.gz (x86_64, aarch64) holds the binary, unit, sysusers and tmpfiles files, the polkit action, and both distributions' PAM files under pam/. The binary uses the standard program interpreter; the unit expects /usr/bin/lys-login and /usr/bin/lys-wm (lys-wm's archive is in the same release). From the unpacked directory:
sudo install -m 0755 lys-login /usr/bin/lys-login
sudo install -m 0644 lys-login.service /usr/lib/systemd/system/
sudo install -D -m 0644 lys-login.sysusers /usr/lib/sysusers.d/lys-login.conf
sudo install -D -m 0644 lys-login.tmpfiles /usr/lib/tmpfiles.d/lys-login.conf
sudo install -D -m 0644 dev.stubbe.lys.login.policy /usr/share/polkit-1/actions/dev.stubbe.lys.login.policy
sudo systemd-sysusers lys-login.conf
sudo systemd-tmpfiles --create lys-login.conf
sudo systemctl daemon-reloadWrite /etc/pam.d/lys-login, lys-login-fingerprint (and lys-login-autologin for autologin) from the closest files under pam/ (PAM services), then:
sudo systemctl disable gdm
sudo systemctl enable lys-loginGreeter under greetd
# /etc/greetd/config.toml
[default_session]
command = "lys-login kiosk -- --config /etc/lys-shell/config.yaml --state /var/lib/lys-greeter/last-session"
user = "greeter"greetd → lys-login kiosk → lys-wm → lys-login greet → (login) → your sessionlys-login kiosk writes the display manager's lys-wm kiosk config (no binds, no borders or animations, the system keyboard layout, the greeter's cursor) to $XDG_RUNTIME_DIR/kiosk.yaml and becomes lys-wm with it, the greeter as its one program. It first waits, up to 10 s, until the greeter account may open every device udev tags uaccess on its seat (XDG_SEAT, else seat0): logind grants those through ACLs only after it marks the session active, and a lys-wm started before the grant misses a device it opens once, such as lavapipe's /dev/udmabuf. A device still closed after 10 s ends lys-login kiosk with an error naming it, and greetd starts the greeter again. The arguments after -- are lys-login greet's. --compositor PATH names lys-wm when it is not lys-wm on the PATH.
- Create the state directory:
install -d -o greeter -g greeter -m 0700 /var/lib/lys-greeter. - Sessions come from
wayland-sessionsandxsessionsin each$XDG_DATA_DIRSdirectory (/usr/local/shareand/usr/sharewhen it names none);--sessions DIRand--xsessions DIRreplace them, and--no-sessionsand--no-xsessionsleave a kind out. -- swayappends a fallback session offered as "Custom".- There is no daemon, so
record-cursorand thelys-settingsapply button are unavailable, andapply-configneeds root.
home-manager
lys.homeModules.lys-login options, under programs.lys-login:
| Option | Type | Default | Effect |
|---|---|---|---|
enable | bool | false | Install lys-login. |
package | package | the flake's lys-login | The lys-login package. |
lock.enable | bool | false | Warn with the steps to create the lock screen's PAM service. |
lock.pamService | string | "lys-shell" | The service name used in that warning. |
greeter.enable | bool | false | Install the lys-greeter-session wrapper, and warn with the greetd setup left to do. |
greeter.compositorPackage | package | the flake's lys-wm | lys-wm for the greeter kiosk. |
greeter.renderer | "auto" or "software" | "auto" | software bakes the CPU and lavapipe variables into the wrapper's lys-wm. |
greeter.settings | YAML | {} | Written to $XDG_CONFIG_HOME/lys-shell/greeter.yaml; copy it where the greetd user can read it. |
lys-greeter-session runs lys-login kiosk with that lys-wm, passing its arguments to lys-login greet:
lys-greeter-session --config /etc/lys-shell/config.yaml --state /var/lib/lys-greeter/last-sessionRendering without a GPU
The greeter draws on the CPU when Vulkan is unavailable; LYS_UI_RENDERER=cpu forces it. The greeter's lys-wm renders with Vulkan and stops on a card without a Vulkan driver, such as a VM's virtio-gpu; LYS_WM_RENDERER=lavapipe makes it render with Vulkan on lavapipe, Mesa's CPU driver, which needs /dev/udmabuf (systemd grants it to the seat's sessions). The greeter's lys-wm gets its environment from PAM, not from the unit, so put the line in /etc/environment (read by pam_env), where lys-wm sessions find it too. Under greetd it can go in the greetd command instead (env LYS_WM_RENDERER=lavapipe lys-login kiosk -- …). The home-manager greeter.renderer = "software" sets both variables for the wrapper's lys-wm and greeter. On a non-NixOS host, run the nix-built package under nixGL for GPU rendering:
nixGLIntel lys-greeter-session --config /etc/lys-shell/config.yaml --state /var/lib/lys-greeter/last-session