options/style: delete

This commit is contained in:
Charlie Root 2025-03-26 19:16:28 +01:00
commit 7616375700
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
6 changed files with 67 additions and 122 deletions

View file

@ -1,37 +0,0 @@
{
lib,
pkgs,
...
}: let
inherit (lib) mkOption mkEnableOption;
inherit (lib.types) str package;
in {
options.modules.usrEnv.style.gtk = {
enable = mkEnableOption "Wether to enable GTK theming";
theme = {
name = mkOption {
description = "The GTK theme name";
default = "Gruvbox-Dark-BL";
type = str;
};
package = mkOption {
description = "The GTK theme package";
default = pkgs.gruvbox-gtk-theme;
type = package;
};
};
iconTheme = {
description = "The GTK icon theme";
name = mkOption {
description = "The GTK icon theme name";
default = "Papirus-Dark";
type = str;
};
package = mkOption {
description = "The GTK icon theme package";
default = pkgs.catppuccin-papirus-folders;
type = package;
};
};
};
}

View file

@ -1,35 +0,0 @@
{
pkgs,
lib,
...
}: let
inherit (lib) mkOption;
inherit (lib.types) package str int;
in {
imports = [
./qt.nix
./gtk.nix
./fonts.nix
./colors.nix
];
options.modules.style = {
cursor = {
package = mkOption {
type = package;
default = pkgs.bibata-cursors;
description = "Cursor package";
};
name = mkOption {
type = str;
default = "Bibata-Modern-Classic";
description = "Cursor name";
};
size = mkOption {
type = int;
default = 32;
description = "Cursor size";
};
};
};
}

View file

@ -1,32 +0,0 @@
{
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkOption;
inherit (lib.types) str package;
in {
options.modules.usrEnv.style.qt = {
enable = mkEnableOption "qt theming";
name = mkOption {
description = "qt theme name";
default = "Catppuccin-Mocha-Dark";
type = str;
};
variant = mkOption {
description = "qt theme variant";
default = "mocha";
type = str;
};
accentColor = mkOption {
description = "accent colour for qt theme";
default = "green";
type = str;
};
package = mkOption {
description = "qt theme package";
default = pkgs.catppuccin-kde;
type = package;
};
};
}

View file

@ -1,12 +1,44 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.usrEnv.style.gtk;
}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) str package;
inherit (lib.modules) mkIf;
cfg = config.modules.theme.gtk;
in {
options.modules.theme.gtk = {
enable = mkEnableOption "Wether to enable GTK theming";
theme = {
name = mkOption {
description = "The GTK theme name";
default = "Gruvbox-Dark-BL";
type = str;
};
package = mkOption {
description = "The GTK theme package";
default = pkgs.gruvbox-gtk-theme;
type = package;
};
};
iconTheme = {
description = "The GTK icon theme";
name = mkOption {
description = "The GTK icon theme name";
default = "Papirus-Dark";
type = str;
};
package = mkOption {
description = "The GTK icon theme package";
default = pkgs.catppuccin-papirus-folders;
type = package;
};
};
};
config = mkIf cfg.enable {
programs.dconf.enable = true; # NOTE: we need this or gtk breaks
# NOTE: we need this or gtk breaks
programs.dconf.enable = true;
};
}

View file

@ -3,20 +3,37 @@
lib,
pkgs,
...
}:
with lib; let
theme = {
package = pkgs.gruvbox-gtk-theme;
name = "Gruvbox-Dark-BL";
};
}: let
inherit (lib.modules) mkIf;
inherit (lib) mkEnableOption mkOption;
inherit (lib.types) str package;
cfg = config.modules.usrEnv.style.qt;
in {
config = mkIf cfg.enable {
environment.sessionVariables = {QT_QPA_PLATFORMTHEME = "qt5ct";};
environment.variables = {
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
GTK_THEME = theme.name;
options.modules.usrEnv.style.qt = {
enable = mkEnableOption "qt theming";
name = mkOption {
description = "qt theme name";
default = "Catppuccin-Mocha-Dark";
type = str;
};
variant = mkOption {
description = "qt theme variant";
default = "mocha";
type = str;
};
accentColor = mkOption {
description = "accent colour for qt theme";
default = "green";
type = str;
};
package = mkOption {
description = "qt theme package";
default = pkgs.catppuccin-kde;
type = package;
};
};
config =
mkIf cfg.enable {
};
}

View file

@ -3,14 +3,14 @@
pkgs,
...
}: let
inherit (config.modules.style) cursor;
# inherit (config.modules.style) cursor;
inherit (builtins) toString;
in {
programs.hyprland.settings = {
# Hyprland settings
# Programs which get executed at Hyprland start.
exec-once = [
"hyprctl setcursor ${cursor.name} ${toString cursor.size}"
# "hyprctl setcursor ${cursor.name} ${toString cursor.size}"
"[workspace special:keepassxc; silent;tile] ${pkgs.keepassxc}/bin/keepassxc"
"[workspace special:audio; silent;tile] ${pkgs.pwvucontrol}/bin/pwvucontrol"