From 997bff26f4a0ce890ca5bb68845b206a0aa50741 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 10 May 2024 19:23:21 -0400 Subject: [PATCH] desktop: added lightdm for budgie --- nixosModules/desktop/default.nix | 1 + nixosModules/desktop/lightdm/default.nix | 49 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 nixosModules/desktop/lightdm/default.nix diff --git a/nixosModules/desktop/default.nix b/nixosModules/desktop/default.nix index 8832ea00..9c0674f0 100644 --- a/nixosModules/desktop/default.nix +++ b/nixosModules/desktop/default.nix @@ -9,6 +9,7 @@ ./gnome ./greetd ./hyprland + ./lightdm ./plasma ./sway ]; diff --git a/nixosModules/desktop/lightdm/default.nix b/nixosModules/desktop/lightdm/default.nix new file mode 100644 index 00000000..00350f32 --- /dev/null +++ b/nixosModules/desktop/lightdm/default.nix @@ -0,0 +1,49 @@ +{ + pkgs, + lib, + config, + ... +}: { + options = { + alyraffauf.desktop.lightdm.enable = + lib.mkEnableOption + "Lightdm and slick greeter with Catppuccin theme."; + }; + + config = lib.mkIf config.alyraffauf.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 { + 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 = "NotoSansNerdFont-Regular"; + font.package = pkgs.nerdfonts.override {fonts = ["Noto"];}; + + cursorTheme.package = pkgs.catppuccin-cursors.frappeDark; + cursorTheme.name = "Catppuccin-Frappe-Dark-Cursors"; + cursorTheme.size = 24; + + extraConfig = '' + background=#303446 + enable-hidpi=on + ''; + }; + }; + }; +}