nixcfg/nixosModules/desktop/lightdm/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {
2024-04-17 21:22:22 -04:00
desktop.lightdm.enable =
2024-04-07 22:16:33 -04:00
lib.mkEnableOption
"Enables lightdm and slick greeter with Catppuccin theme.";
};
2024-04-17 21:22:22 -04:00
config = lib.mkIf config.desktop.lightdm.enable {
security.pam.services.lightdm.enableKwallet = true;
security.pam.services.lightdm.enableGnomeKeyring = true;
services.xserver.displayManager.lightdm = {
enable = true;
greeters.slick = {
enable = true;
theme.name = "Catppuccin-Frappe-Compact-Mauve-Dark";
theme.package = pkgs.catppuccin-gtk.override {
2024-04-07 22:16:33 -04:00
accents = ["mauve"];
size = "compact";
variant = "frappe";
2024-04-07 22:16:33 -04:00
tweaks = ["normal"];
};
iconTheme.name = "Papirus-Dark";
iconTheme.package = pkgs.catppuccin-papirus-folders.override {
flavor = "frappe";
accent = "mauve";
};
font.name = "NotoSans Nerd Font Regular";
2024-04-07 22:16:33 -04:00
font.package = pkgs.nerdfonts.override {fonts = ["Noto"];};
cursorTheme.package = pkgs.catppuccin-cursors.frappeDark;
cursorTheme.name = "Catppuccin-Frappe-Dark-Cursors";
cursorTheme.size = 32;
extraConfig = ''
background=#ca9ee6
enable-hidpi=on
'';
};
};
};
}