nixos/modules/DM/lightDM.nix
2023-02-22 19:41:05 -05:00

55 lines
1.4 KiB
Nix

_: {
config,
lib,
options,
settings,
self,
...
}:
with lib; let
cfg = config.localModules.DM.lightdm;
in {
options.localModules.DM.lightdm = {
enable = mkEnableOption "";
};
config = mkIf cfg.enable {
services.xserver = {
displayManager = {
lightdm = {
enable = true;
background = self + /misc/recursion.png;
extraConfig = "minimum-vt=1";
greeters.mini = {
enable = true;
user = settings.username;
extraConfig = ''
[greeter]
show-password-label = false
password-label-text =
invalid-password-text =
show-input-cursor = false
password-alignment = center
password-input-width = 19
show-image-on-all-monitors = true
[greeter-theme]
font = "OverpassMono Nerd Font"
font-size = 1.1em
text-color = "#7AA2F7"
error-color = "#DB4B4B"
background-color = "#000000"
window-color = "#000000"
border-color = "#000000"
password-character = -1
password-color = "#7AA2F7"
password-background-color = "#24283B"
password-border-color = "#000000"
password-border-radius = 0.341125em
'';
};
};
};
};
};
}