nixosmodules: merge lightdm and cinnamon modules

This commit is contained in:
Aly Raffauf 2024-07-07 20:23:29 -04:00
parent 58b248367c
commit d0e45edce8
4 changed files with 38 additions and 49 deletions

View file

@ -5,11 +5,48 @@
...
}: {
config = lib.mkIf config.ar.desktop.cinnamon.enable {
security.pam.services.lightdm = {
enableGnomeKeyring = true;
gnupg.enable = true;
kwallet.enable = true;
};
services = {
xserver = {
enable = true;
desktopManager.cinnamon = {
desktopManager.cinnamon.enable = true;
displayManager.lightdm = {
enable = true;
greeters.slick = {
enable = true;
cursorTheme = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 20;
};
font = {
name = "NotoSans Nerd Font Regular";
package = pkgs.nerdfonts;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = {
name = "adw-gtk3-dark";
package = pkgs.adw-gtk3;
};
extraConfig = ''
background=#242424
enable-hidpi=on
'';
};
};
};
};

View file

@ -9,7 +9,6 @@
./gnome
./greetd
./hyprland
./lightdm
./sway
./waylandComp.nix
];

View file

@ -1,46 +0,0 @@
{
config,
lib,
pkgs,
...
}: {
config = lib.mkIf config.ar.desktop.lightdm.enable {
security.pam.services.lightdm = {
enableGnomeKeyring = true;
gnupg.enable = true;
kwallet.enable = true;
};
services.xserver.displayManager.lightdm = {
enable = true;
greeters.slick = {
enable = true;
theme = {
name = "adw-gtk3-dark";
package = pkgs.adw-gtk3;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
font = {
name = "NotoSans Nerd Font Regular";
package = pkgs.nerdfonts;
};
cursorTheme = {
name = "Bibata-Modern-Classic";
package = pkgs.bibata-cursors;
size = 20;
};
extraConfig = ''
background=#242424
enable-hidpi=on
'';
};
};
};
}

View file

@ -38,7 +38,6 @@
};
hyprland.enable = lib.mkEnableOption "Hyprland wayland session.";
lightdm.enable = lib.mkEnableOption "Lightdm display manager.";
steam.enable = lib.mkEnableOption "Steam + Gamescope session.";
sway.enable = lib.mkEnableOption "Sway wayland session.";
};