clear (refactor options): refactor options
This commit is contained in:
parent
00ea2b0c36
commit
bfce36ce73
22 changed files with 340 additions and 463 deletions
|
|
@ -6,39 +6,23 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.home.theme;
|
||||
in
|
||||
{
|
||||
imports = [ inputs.catppuccin.homeModules.catppuccin ];
|
||||
|
||||
options = {
|
||||
home.theme = {
|
||||
catppuccin = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Catppuccin Theme.";
|
||||
};
|
||||
kitty.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Kitty catppuccin Theme.";
|
||||
};
|
||||
helix.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Helix catppuccin Theme.";
|
||||
};
|
||||
vscodium.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "VSCodium catppuccin Theme.";
|
||||
};
|
||||
};
|
||||
options.home.theme = {
|
||||
catppuccin = {
|
||||
enable = mkEnableOption "Catppuccin Theme.";
|
||||
kitty.enable = mkEnableOption "Kitty catppuccin Theme.";
|
||||
helix.enable = mkEnableOption "Helix catppuccin Theme.";
|
||||
vscodium.enable = mkEnableOption "VSCodium catppuccin Theme.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.catppuccin.enable {
|
||||
config = mkIf cfg.catppuccin.enable {
|
||||
fonts.fontconfig.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
noto-fonts
|
||||
|
|
@ -47,7 +31,7 @@ in
|
|||
nerd-fonts.jetbrains-mono
|
||||
];
|
||||
|
||||
programs.kitty = lib.mkIf cfg.catppuccin.kitty.enable {
|
||||
programs.kitty = mkIf cfg.catppuccin.kitty.enable {
|
||||
themeFile = "Catppuccin-Macchiato";
|
||||
settings = {
|
||||
cursor_trail = 3;
|
||||
|
|
@ -58,12 +42,12 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
catppuccin.helix = lib.mkIf cfg.catppuccin.helix.enable {
|
||||
catppuccin.helix = mkIf cfg.catppuccin.helix.enable {
|
||||
enable = true;
|
||||
flavor = "macchiato";
|
||||
};
|
||||
|
||||
programs.vscode.profiles.default = lib.mkIf cfg.catppuccin.vscodium.enable {
|
||||
programs.vscode.profiles.default = mkIf cfg.catppuccin.vscodium.enable {
|
||||
extensions = with pkgs.vscode-marketplace; [
|
||||
catppuccin.catppuccin-vsc
|
||||
catppuccin.catppuccin-vsc-icons
|
||||
|
|
|
|||
Reference in a new issue