Skip to content

Commit

Permalink
fix: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 15, 2023
1 parent 359dce7 commit 461b64a
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions modules/home/desktop/theme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,50 +69,48 @@ in
};

config = mkIf cfg.enable {
#bat
programs.bat = {
config.theme = "${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}";
programs = {
bat = {
config.theme = "${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}";

themes = {
"${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}" = {
src = cfg.package;
file = "/bat/Catppuccin-${cfg.selectedTheme.variant}.tmTheme";
themes = {
"${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}" = {
src = cfg.package;
file = "/bat/Catppuccin-${cfg.selectedTheme.variant}.tmTheme";
};
};
};
};

programs.git.delta = {
options = {
syntax-theme = mkIf config.khanelinix.tools.bat.enable "${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}";
git.delta = {
options = {
syntax-theme = mkIf config.khanelinix.tools.bat.enable "${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}";
};
};
};

#bottom
programs.bottom = {
settings = builtins.fromTOML (builtins.readFile (cfg.package + "/bottom/${cfg.selectedTheme.variant}.toml"));
};
bottom = {
settings = builtins.fromTOML (builtins.readFile (cfg.package + "/bottom/${cfg.selectedTheme.variant}.toml"));
};

# btop
programs.btop = {
settings.color_theme = "${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}";
btop = {
settings.color_theme = "${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}";
};

k9s.skin = fromYAML (cfg.package + "/k9s/${cfg.selectedTheme.variant}.yml");

tmux.plugins = [{
plugin = pkgs.tmuxPlugins.catppuccin;
extraConfig = ''
set -g @catppuccin_flavour '${cfg.selectedTheme.variant}'
set -g @catppuccin_host 'on'
set -g @catppuccin_user 'on'
'';
}];
};

xdg.configFile = {
"btop/themes/${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}.theme" = {
source = mkIf config.programs.btop.enable (cfg.package + "/btop/${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}.theme");
};
};

# k9s
programs.k9s.skin = fromYAML (cfg.package + "/k9s/${cfg.selectedTheme.variant}.yml");

# tmux
programs.tmux.plugins = [{
plugin = pkgs.tmuxPlugins.catppuccin;
extraConfig = ''
set -g @catppuccin_flavour '${cfg.selectedTheme.variant}'
set -g @catppuccin_host 'on'
set -g @catppuccin_user 'on'
'';
}];
};
}

0 comments on commit 461b64a

Please sign in to comment.