mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 05:53:56 -05:00
hyprland: moved lightdm to separate module
This commit is contained in:
parent
6511ab25fe
commit
62bbdbe1eb
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
imports = [ ./gnome ./plasma ./windowManagers/hyprland ];
|
||||
imports = [ ./displayManagers/lightdm ./gnome ./plasma ./windowManagers/hyprland ];
|
||||
|
||||
options = {
|
||||
desktopConfig.enable =
|
||||
|
|
4
nixosModules/desktopConfig/displayManagers/default.nix
Normal file
4
nixosModules/desktopConfig/displayManagers/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
imports = [ ./lightdm ];
|
||||
}
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
desktopConfig.displayManagers.lightdm.enable = lib.mkDefault true;
|
||||
|
||||
extraConfig = ''
|
||||
background=#ca9ee6
|
||||
enable-hidpi=on
|
||||
'';
|
||||
};
|
||||
};
|
||||
programs.hyprland.enable = true;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
services.upower.enable = true;
|
||||
|
|
Loading…
Reference in a new issue