{ config, lib, ... }: let cfg = config.nmasur.presets.services.lightdm; in { options.nmasur.presets.services.lightdm = { enable = lib.mkEnableOption "Lightdm display manager"; wallpaper = { type = lib.types.path; description = "Wallpaper background image file"; }; }; config = lib.mkIf cfg.enable { services.xserver = { enable = true; # Login screen displayManager = { lightdm = { enable = true; background = cfg.wallpaper; # Show default user # Also make sure /var/lib/AccountsService/users/ has SystemAccount=false extraSeatDefaults = '' greeter-hide-users = false ''; }; }; }; }; }