mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 09:52:03 +00:00
36 lines
639 B
Nix
36 lines
639 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.nmasur.presets.services.lightdm;
|
||
|
in
|
||
|
|
||
|
{
|
||
|
|
||
|
options.nmasur.presets.services.lightdm.enable = lib.mkEnableOption "Lightdm display manager";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
services.xserver = {
|
||
|
enable = true;
|
||
|
|
||
|
# Login screen
|
||
|
displayManager = {
|
||
|
lightdm = {
|
||
|
enable = true;
|
||
|
background = config.wallpaper;
|
||
|
|
||
|
# Show default user
|
||
|
# Also make sure /var/lib/AccountsService/users/<user> has SystemAccount=false
|
||
|
extraSeatDefaults = ''
|
||
|
greeter-hide-users = false
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|