2025-01-20 22:35:40 -05:00
|
|
|
{
|
|
|
|
config,
|
2025-02-05 17:25:29 -05:00
|
|
|
pkgs,
|
2025-01-20 22:35:40 -05:00
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.nmasur.presets.services.lightdm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2025-02-01 16:10:16 -05:00
|
|
|
options.nmasur.presets.services.lightdm = {
|
|
|
|
enable = lib.mkEnableOption "Lightdm display manager";
|
|
|
|
wallpaper = {
|
|
|
|
type = lib.types.path;
|
|
|
|
description = "Wallpaper background image file";
|
|
|
|
};
|
2025-02-05 17:25:29 -05:00
|
|
|
gtk.theme = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
type = lib.types.str;
|
|
|
|
default = "Adwaita-dark";
|
|
|
|
};
|
|
|
|
package = lib.mkPackageOption pkgs "gnome-themes-extra" { };
|
|
|
|
};
|
2025-02-01 16:10:16 -05:00
|
|
|
};
|
2025-01-20 22:35:40 -05:00
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Login screen
|
|
|
|
displayManager = {
|
|
|
|
lightdm = {
|
|
|
|
enable = true;
|
2025-02-01 16:10:16 -05:00
|
|
|
background = cfg.wallpaper;
|
2025-01-20 22:35:40 -05:00
|
|
|
|
|
|
|
# Show default user
|
|
|
|
# Also make sure /var/lib/AccountsService/users/<user> has SystemAccount=false
|
|
|
|
extraSeatDefaults = ''
|
|
|
|
greeter-hide-users = false
|
|
|
|
'';
|
2025-02-05 17:25:29 -05:00
|
|
|
|
|
|
|
# Make the login screen dark
|
|
|
|
greeters.gtk.theme = {
|
|
|
|
name = cfg.gtk.theme.name;
|
|
|
|
package = cfg.gtk.theme.package;
|
|
|
|
};
|
|
|
|
|
2025-01-20 22:35:40 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|