hyprland: moved lightdm to separate module

This commit is contained in:
Aly Raffauf 2024-03-28 20:19:31 -04:00
parent 6511ab25fe
commit 62bbdbe1eb
4 changed files with 46 additions and 29 deletions

View file

@ -1,6 +1,6 @@
{ pkgs, lib, config, ... }: {
imports = [ ./gnome ./plasma ./windowManagers/hyprland ];
imports = [ ./displayManagers/lightdm ./gnome ./plasma ./windowManagers/hyprland ];
options = {
desktopConfig.enable =

View file

@ -0,0 +1,4 @@
{ pkgs, lib, config, ... }: {
imports = [ ./lightdm ];
}

View file

@ -0,0 +1,38 @@
{ pkgs, lib, config, ... }: {
options = {
desktopConfig.displayManagers.lightdm.enable = lib.mkEnableOption
"Enables lightdm and slick greeter with Catppuccin theme.";
};
config = lib.mkIf config.desktopConfig.displayManagers.lightdm.enable {
services.xserver.displayManager.lightdm = {
enable = true;
greeters.slick = {
enable = true;
theme.name = "Catppuccin-Frappe-Compact-Mauve-Dark";
theme.package = pkgs.catppuccin-gtk.override {
accents = [ "mauve" ];
size = "compact";
variant = "frappe";
tweaks = [ "normal" ];
};
iconTheme.name = "Papirus-Dark";
iconTheme.package = pkgs.catppuccin-papirus-folders.override {
flavor = "frappe";
accent = "mauve";
};
font.name = "NotoSans Nerd Font Regular";
cursorTheme.package = pkgs.catppuccin-cursors.frappeDark;
cursorTheme.name = "Catppuccin-Frappe-Dark-Cursors";
cursorTheme.size = 32;
extraConfig = ''
background=#ca9ee6
enable-hidpi=on
'';
};
};
};
}

View file

@ -2,38 +2,13 @@
options = {
desktopConfig.windowManagers.hyprland.enable = lib.mkEnableOption
"Enables hyprland window manager session with lightdm.";
"Enables hyprland window manager session.";
};
config = lib.mkIf config.desktopConfig.windowManagers.hyprland.enable {
services.xserver.displayManager.lightdm = {
enable = true;
greeters.slick = {
enable = true;
theme.name = "Catppuccin-Frappe-Compact-Mauve-Dark";
theme.package = pkgs.catppuccin-gtk.override {
accents = [ "mauve" ];
size = "compact";
variant = "frappe";
tweaks = [ "normal" ];
};
iconTheme.name = "Papirus-Dark";
iconTheme.package = pkgs.catppuccin-papirus-folders.override {
flavor = "frappe";
accent = "mauve";
};
font.name = "NotoSans Nerd Font Regular";
cursorTheme.package = pkgs.catppuccin-cursors.frappeDark;
cursorTheme.name = "Catppuccin-Frappe-Dark-Cursors";
cursorTheme.size = 32;
extraConfig = ''
background=#ca9ee6
enable-hidpi=on
'';
};
};
desktopConfig.displayManagers.lightdm.enable = lib.mkDefault true;
programs.hyprland.enable = true;
services.power-profiles-daemon.enable = true;
services.upower.enable = true;