2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-31 15:06:44 -04:00
|
|
|
options = {
|
2024-04-26 21:49:10 -04:00
|
|
|
alyraffauf.desktop.theme.enable =
|
|
|
|
lib.mkEnableOption "GTK and Qt themes.";
|
2024-05-04 20:43:51 -04:00
|
|
|
alyraffauf.desktop.theme.gtk = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
description = "GTK theme name.";
|
|
|
|
default = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
package = lib.mkOption {
|
|
|
|
description = "GTK theme package.";
|
|
|
|
default = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = ["mauve"];
|
|
|
|
size = "compact";
|
|
|
|
variant = "frappe";
|
|
|
|
tweaks = ["normal"];
|
|
|
|
};
|
|
|
|
type = lib.types.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
alyraffauf.desktop.theme.iconTheme = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
description = "Icon theme name.";
|
|
|
|
default = "Papirus-Dark";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
package = lib.mkOption {
|
|
|
|
description = "Icon theme package.";
|
|
|
|
default = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
flavor = "frappe";
|
|
|
|
accent = "mauve";
|
|
|
|
};
|
|
|
|
type = lib.types.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
alyraffauf.desktop.theme.cursorTheme = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
description = "Cursor theme name.";
|
|
|
|
default = "Catppuccin-Frappe-Dark-Cursors";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
size = lib.mkOption {
|
|
|
|
description = "Cursor size.";
|
|
|
|
default = 24;
|
|
|
|
type = lib.types.int;
|
|
|
|
};
|
|
|
|
package = lib.mkOption {
|
|
|
|
description = "Cursor theme package.";
|
|
|
|
default = pkgs.catppuccin-cursors.frappeDark;
|
|
|
|
type = lib.types.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
alyraffauf.desktop.theme.font = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
description = "Font name.";
|
2024-05-04 21:23:52 -04:00
|
|
|
default = "NotoSansNerdFont";
|
2024-05-04 20:43:51 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
size = lib.mkOption {
|
|
|
|
description = "Font size.";
|
|
|
|
default = 11;
|
|
|
|
type = lib.types.int;
|
|
|
|
};
|
|
|
|
package = lib.mkOption {
|
|
|
|
description = "Font package.";
|
|
|
|
default = pkgs.nerdfonts.override {fonts = ["Noto"];};
|
|
|
|
type = lib.types.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
alyraffauf.desktop.theme.terminalFont = {
|
|
|
|
name = lib.mkOption {
|
|
|
|
description = "Font name.";
|
2024-05-04 20:48:03 -04:00
|
|
|
default = "NotoSansMNerdFont";
|
2024-05-04 20:43:51 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
size = lib.mkOption {
|
|
|
|
description = "Font size.";
|
|
|
|
default = 11;
|
|
|
|
type = lib.types.int;
|
|
|
|
};
|
|
|
|
package = lib.mkOption {
|
|
|
|
description = "Font package.";
|
|
|
|
default = pkgs.nerdfonts.override {fonts = ["Noto"];};
|
|
|
|
type = lib.types.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
alyraffauf.desktop.theme.colors = {
|
|
|
|
text = lib.mkOption {
|
|
|
|
description = "Text color.";
|
|
|
|
default = "#FAFAFA";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-05-04 20:51:15 -04:00
|
|
|
background = lib.mkOption {
|
|
|
|
description = "Background color.";
|
|
|
|
default = "#232634";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-05-04 20:43:51 -04:00
|
|
|
primary = lib.mkOption {
|
|
|
|
description = "Primary color.";
|
|
|
|
default = "#CA9EE6";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
secondary = lib.mkOption {
|
|
|
|
description = "Secondary color.";
|
|
|
|
default = "#99D1DB";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
inactive = lib.mkOption {
|
|
|
|
description = "Inactive color.";
|
|
|
|
default = "#626880";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
shadow = lib.mkOption {
|
|
|
|
description = "Drop shadow color.";
|
|
|
|
default = "#1A1A1A";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
};
|
2024-05-04 21:17:28 -04:00
|
|
|
alyraffauf.desktop.theme.wallpaper = lib.mkOption {
|
|
|
|
description = "Default wallpaper.";
|
|
|
|
default = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
2024-04-26 21:49:10 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.desktop.theme.enable {
|
2024-03-31 15:06:44 -04:00
|
|
|
home.pointerCursor = {
|
|
|
|
gtk.enable = true;
|
|
|
|
x11.enable = true;
|
2024-05-04 20:43:51 -04:00
|
|
|
package = config.alyraffauf.desktop.theme.cursorTheme.package;
|
|
|
|
name = config.alyraffauf.desktop.theme.cursorTheme.name;
|
|
|
|
size = config.alyraffauf.desktop.theme.cursorTheme.size;
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
2024-04-19 07:53:37 -04:00
|
|
|
platformTheme.name = "gtk";
|
2024-04-07 16:20:08 -04:00
|
|
|
style.name = "gtk2";
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
theme = {
|
2024-05-04 20:43:51 -04:00
|
|
|
package = config.alyraffauf.desktop.theme.gtk.package;
|
|
|
|
name = config.alyraffauf.desktop.theme.gtk.name;
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
iconTheme = {
|
2024-05-04 20:43:51 -04:00
|
|
|
package = config.alyraffauf.desktop.theme.iconTheme.package;
|
|
|
|
name = config.alyraffauf.desktop.theme.iconTheme.name;
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
font = {
|
2024-05-04 21:23:52 -04:00
|
|
|
name = "${config.alyraffauf.desktop.theme.font.name}-Regular";
|
2024-05-04 20:43:51 -04:00
|
|
|
package = config.alyraffauf.desktop.theme.font.package;
|
|
|
|
size = config.alyraffauf.desktop.theme.font.size;
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
gtk3.extraConfig = {gtk-application-prefer-dark-theme = 1;};
|
2024-03-31 15:06:44 -04:00
|
|
|
|
2024-04-07 22:16:33 -04:00
|
|
|
gtk4.extraConfig = {gtk-application-prefer-dark-theme = 1;};
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
dconf.settings = {
|
|
|
|
"org/gnome/desktop/interface" = {
|
2024-05-04 20:43:51 -04:00
|
|
|
gtk-theme = config.alyraffauf.desktop.theme.gtk.name;
|
2024-03-31 15:06:44 -04:00
|
|
|
color-scheme = "prefer-dark";
|
2024-05-04 20:43:51 -04:00
|
|
|
cursor-theme = config.alyraffauf.desktop.theme.cursorTheme.name;
|
|
|
|
cursor-size = config.alyraffauf.desktop.theme.cursorTheme.size;
|
2024-03-31 15:06:44 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|