catppuccin all the things!

This commit is contained in:
John Bowdre 2024-12-23 09:22:05 -06:00
parent 324ddbb6b9
commit 0b7c4606eb
6 changed files with 38 additions and 17 deletions

View file

@ -1,5 +1,20 @@
{
"nodes": {
"catppuccin": {
"locked": {
"lastModified": 1734734291,
"narHash": "sha256-CFX4diEQHKvZYjnhf7TLg20m3ge1O4vqgplsk/Kuaek=",
"owner": "catppuccin",
"repo": "nix",
"rev": "1e4c3803b8da874ff75224ec8512cb173036bbd8",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "nix",
"type": "github"
}
},
"devshell": {
"inputs": {
"nixpkgs": [
@ -393,6 +408,7 @@
},
"root": {
"inputs": {
"catppuccin": "catppuccin",
"firefox-addons": "firefox-addons",
"hardware": "hardware",
"home-manager": "home-manager",

View file

@ -39,6 +39,9 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# Catppuccin theme
catppuccin.url = "github:catppuccin/nix";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:

View file

@ -1,5 +1,5 @@
{ outputs, lib, config, pkgs, ... }: {
imports = [ ../modules/tui ]
{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [ ../modules/tui inputs.catppuccin.homeManagerModules.catppuccin ]
++ (builtins.attrValues outputs.homeManagerModules);
nixpkgs = {
@ -31,5 +31,10 @@
};
catppuccin = {
flavor = "mocha";
enable = true;
};
targets.genericLinux.enable = true;
}

View file

@ -16,7 +16,6 @@
visual_bell_duration = "1.0 ease-in-out";
};
shellIntegration.enableFishIntegration = true;
themeFile = "Catppuccin-Mocha";
};
}

View file

@ -16,9 +16,6 @@
fzf.enable = true;
bat = {
enable = true;
config = { theme = "gruvbox-dark"; };
};
bat = { enable = true; };
};
}

View file

@ -1,5 +1,15 @@
{ pkgs, ... }: {
catppuccin.tmux.extraConfig = ''
# catppuccin theme options
set -g @catppuccin_status_modules_left "host"
set -g @catppuccin_status_modules_right "application cpu weather session"
set -g @tmux-weather-units "u"
run-shell ${pkgs.tmuxPlugins.catppuccin}/share/tmux-plugins/catppuccin/catppuccin.tmux
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux
run-shell ${pkgs.tmuxPlugins.weather}/share/tmux-plugins/weather/tmux-weather.tmux
'';
programs.tmux = {
enable = true;
aggressiveResize = true;
@ -12,17 +22,8 @@
keyMode = "vi";
mouse = true;
shell = "${pkgs.fish}/bin/fish";
plugins = with pkgs.tmuxPlugins; [ catppuccin cpu weather ];
plugins = with pkgs.tmuxPlugins; [ cpu weather ];
extraConfig = ''
# catppuccin theme options
set -g @catppuccin_flavour "mocha"
set -g @catppuccin_status_modules_left "host"
set -g @catppuccin_status_modules_right "application cpu weather session"
set -g @tmux-weather-units "u"
run-shell ${pkgs.tmuxPlugins.catppuccin}/share/tmux-plugins/catppuccin/catppuccin.tmux
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux
run-shell ${pkgs.tmuxPlugins.weather}/share/tmux-plugins/weather/tmux-weather.tmux
# new panes inherit current working directory
bind '%' split-window -h -c '#{pane_current_path}'
bind '"' split-window -v -c '#{pane_current_path}'