Sddm
Simple Desktop Display Manager (SDDM) is a modern display manager for X11 and Wayland sessions.
Installation
SDDM can be enabled as the display manager with these lines.
services.displayManager.sddm = {
enable = true;
# Enables experimental Wayland support
wayland.enable = true;
};
Configuration
Wayland
services.displayManager.sddm = {
enable = true;
wayland = {
enable = true;
# default compositor is "weston", you can optionally change it to kwin
#compositor = "kwin";
};
};
};
Autologin
services.displayManager = {
sddm = {
enable = true;
wayland.enable = true;
};
autoLogin = {
enable = true;
user = "user"; # Replace with the desired user
};
};
Disable/Enable fprint
With fprint enabled on the system, SDDM will expect a fingerprint after entering any password. SDDM does not show any prompt for this and this will time out after some time and SDDM will attempt to use your entered password. If you have your fingerprints enrolled, you can press enter and use your fingerprint reader. You may find additional options for fprint as well as information on enrolling fingerprints on the Fingerprint scanner page.
Enable fprint system wide
You can enable this behavior by enabling fprint.
services.fprintd.enable = true;
Disable fprint for login
Stops SDDM from prompting for fingerprint.
security.pam.services.login.fprintAuth = false;
Troubleshooting
SDDM Hangs after entering password
With fprint enabled, SDDM will expect a fingerprint after entering any password. SDDM is likely waiting for a fingerprint without a prompt. You can disable this behavior by seeing the fprint configuration section of this article.
Installing themes
You can install and configure a theme like so
{ pkgs, ... }:
{
services.displayManager.sddm = {
enable = true;
theme = "catppuccin-mocha-mauve";
};
environment.systemPackages = [
(pkgs.catppuccin-sddm.override {
flavor = "mocha";
accent = "mauve";
})
];
}