Switched to catppuccin
This commit is contained in:
parent
a7a8b638b0
commit
6ab7837acf
26
flake.lock
26
flake.lock
|
@ -25,20 +25,18 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"base16-shell": {
|
"catppuccin": {
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1663053609,
|
"lastModified": 1722997334,
|
||||||
"narHash": "sha256-X89FsG9QICDw3jZvOCB/KsPBVOLUeE7xN3VCtf0DD3E=",
|
"narHash": "sha256-vE5FcKVQ3E0txJKt5w3vOlfcN1XoTAlxK9PnQ/CJavA=",
|
||||||
"owner": "chriskempson",
|
"owner": "catppuccin",
|
||||||
"repo": "base16-shell",
|
"repo": "nix",
|
||||||
"rev": "588691ba71b47e75793ed9edfcfaa058326a6f41",
|
"rev": "66f4ea170093b62f319f41cebd2337a51b225c5a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "chriskempson",
|
"owner": "catppuccin",
|
||||||
"ref": "master",
|
"repo": "nix",
|
||||||
"repo": "base16-shell",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -453,11 +451,11 @@
|
||||||
"nixvim": "nixvim_2"
|
"nixvim": "nixvim_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722962845,
|
"lastModified": 1723417027,
|
||||||
"narHash": "sha256-5LVqc7VzjUyHNPg+s4h7+hpI3+PyxmTVxBHh0ZZlVdY=",
|
"narHash": "sha256-7nHu9z9nl74cQxsKc/MqVJxP55Tp6st0BqQBRD0rcdw=",
|
||||||
"owner": "alejandro-angulo",
|
"owner": "alejandro-angulo",
|
||||||
"repo": "nixvim-config",
|
"repo": "nixvim-config",
|
||||||
"rev": "5b0724b2f9ac3ad19cdb7b0a40ffc80f5449094b",
|
"rev": "c2019dad461435c6e4f3c518355d9bf244f45ab2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -535,7 +533,7 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
"base16-shell": "base16-shell",
|
"catppuccin": "catppuccin",
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
home-manager.url = "github:nix-community/home-manager/master";
|
home-manager.url = "github:nix-community/home-manager/master";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
catppuccin.url = "github:catppuccin/nix";
|
||||||
|
|
||||||
nixos-generators.url = "github:nix-community/nixos-generators";
|
nixos-generators.url = "github:nix-community/nixos-generators";
|
||||||
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
@ -28,9 +30,6 @@
|
||||||
nixvim.url = "github:alejandro-angulo/nixvim-config";
|
nixvim.url = "github:alejandro-angulo/nixvim-config";
|
||||||
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
base16-shell.url = "github:chriskempson/base16-shell/master";
|
|
||||||
base16-shell.flake = false;
|
|
||||||
|
|
||||||
zsh-syntax-highlighting.url = "github:zsh-users/zsh-syntax-highlighting/master";
|
zsh-syntax-highlighting.url = "github:zsh-users/zsh-syntax-highlighting/master";
|
||||||
zsh-syntax-highlighting.flake = false;
|
zsh-syntax-highlighting.flake = false;
|
||||||
|
|
||||||
|
@ -63,6 +62,8 @@
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
|
homes.modules = with inputs; [catppuccin.homeManagerModules.catppuccin];
|
||||||
|
|
||||||
deploy.nodes = {
|
deploy.nodes = {
|
||||||
node = {
|
node = {
|
||||||
hostname = "node";
|
hostname = "node";
|
||||||
|
|
|
@ -15,7 +15,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config.theme = "gruvbox-dark";
|
catppuccin.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,10 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.btop = {
|
programs.btop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme_background = false;
|
theme_background = false;
|
||||||
vim_keys = true;
|
vim_keys = true;
|
||||||
color_theme = "gruvbox_dark_v2";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,10 +16,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
xdg.dataFile."tmux-theme".source = ./tmux_theme;
|
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
newSession = true;
|
newSession = true;
|
||||||
sensibleOnTop = true;
|
sensibleOnTop = true;
|
||||||
|
@ -73,11 +72,6 @@ in {
|
||||||
bind '"' split-window -c "#{pane_current_path}"
|
bind '"' split-window -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
# Eye Candy
|
|
||||||
# set -g @plugin 'mattdavis90/base16-tmux'
|
|
||||||
# set -g @colors-base16 'darktooth'
|
|
||||||
source-file ${config.xdg.dataHome}/tmux-theme;
|
|
||||||
|
|
||||||
# Smart pane switching with awareness of Vim splits.
|
# Smart pane switching with awareness of Vim splits.
|
||||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
# This tmux statusbar config was created by tmuxline.vim
|
|
||||||
# on Sun, 02 Apr 2023
|
|
||||||
# Some modifications made by hand
|
|
||||||
|
|
||||||
set -g status-justify "left"
|
|
||||||
set -g status "on"
|
|
||||||
set -g status-left-style "none"
|
|
||||||
set -g message-command-style "fg=#a89984,bg=#504945"
|
|
||||||
set -g status-right-style "none"
|
|
||||||
set -g pane-active-border-style "fg=#504945"
|
|
||||||
set -g status-style "none,bg=#32302f"
|
|
||||||
set -g message-style "fg=#a89984,bg=#504945"
|
|
||||||
set -g pane-border-style "fg=#32302f"
|
|
||||||
set -g status-right-length "100"
|
|
||||||
set -g status-left-length "100"
|
|
||||||
setw -g window-status-activity-style "none"
|
|
||||||
setw -g window-status-separator ""
|
|
||||||
setw -g window-status-style "none,fg=#928374,bg=#32302f"
|
|
||||||
set -g status-left "#[fg=#928374,bg=#32302f] #S #[fg=#32302f,bg=#32302f,nobold,nounderscore,noitalics]"
|
|
||||||
set -g status-right "#[fg=#32302f,bg=#32302f,nobold,nounderscore,noitalics]#[fg=#928374,bg=#32302f] %Y-%m-%d %H:%M #[fg=#32302f,bg=#32302f,nobold,nounderscore,noitalics]#[fg=#928374,bg=#32302f] #h "
|
|
||||||
setw -g window-status-format "#[fg=#928374,bg=#32302f] #I )#[fg=#928374,bg=#32302f] #W "
|
|
||||||
setw -g window-status-current-format "#[fg=#32302f,bg=#504945,nobold,nounderscore,noitalics]#[fg=#a89984,bg=#504945] #I #[fg=#a89984,bg=#504945] #W #[fg=#504945,bg=#32302f,nobold,nounderscore,noitalics]"
|
|
22
modules/home/programs/k9s/default.nix
Normal file
22
modules/home/programs/k9s/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
namespace,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.${namespace}.programs.k9s;
|
||||||
|
in {
|
||||||
|
options.${namespace}.programs.k9s = {
|
||||||
|
enable = lib.mkEnableOption "k9s";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.k9s = {
|
||||||
|
enable = true;
|
||||||
|
catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
transparent = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -16,6 +16,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
font = {
|
font = {
|
||||||
size = 12;
|
size = 12;
|
||||||
package = pkgs.nerdfonts.override {fonts = ["Hack"];};
|
package = pkgs.nerdfonts.override {fonts = ["Hack"];};
|
||||||
|
|
|
@ -18,7 +18,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
# TODO: How to ensure this font is installed?
|
# TODO: How to ensure this font is installed?
|
||||||
font = "Hack Nerd Font 10";
|
font = "Hack Nerd Font 10";
|
||||||
theme = "gruvbox-dark-hard";
|
catppuccin.enable = true;
|
||||||
plugins = [pkgs.rofi-emoji];
|
plugins = [pkgs.rofi-emoji];
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
show-icons = true;
|
show-icons = true;
|
||||||
|
|
|
@ -15,9 +15,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
catppuccin.enable = true;
|
||||||
image = "${config.xdg.dataHome}/${config.${namespace}.windowManagers.sway.wallpaperPath}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
widgets = ["title" "dnd" "notifications" "mpris"];
|
widgets = ["title" "dnd" "notifications" "mpris"];
|
||||||
};
|
};
|
||||||
|
style = builtins.readFile "${pkgs.aa.catppuccin-swaync}/catppuccin.css";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ in {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
delta = {
|
delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
options = {
|
options = {
|
||||||
line-numbers = true;
|
line-numbers = true;
|
||||||
navigate = true;
|
navigate = true;
|
||||||
|
@ -86,6 +87,7 @@ in {
|
||||||
|
|
||||||
programs.lazygit = {
|
programs.lazygit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
quitOnTopLevelReturn = true;
|
quitOnTopLevelReturn = true;
|
||||||
gui.nerdFontsVersion = "3";
|
gui.nerdFontsVersion = "3";
|
||||||
|
|
|
@ -23,7 +23,6 @@ in {
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
'';
|
'';
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
base16_darktooth
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
bindkey '^A' beginning-of-line
|
bindkey '^A' beginning-of-line
|
||||||
bindkey '^E' end-of-line
|
bindkey '^E' end-of-line
|
||||||
|
@ -48,11 +47,6 @@ in {
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
file = "p10k.zsh";
|
file = "p10k.zsh";
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "base16-shell";
|
|
||||||
src = inputs.base16-shell;
|
|
||||||
file = "base16-shell.plugin.zsh";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -65,11 +65,17 @@ in {
|
||||||
xdg-utils
|
xdg-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
home.pointerCursor = {
|
catppuccin.pointerCursor = {
|
||||||
package = pkgs.catppuccin-cursors.mochaDark;
|
enable = true;
|
||||||
name = "catppuccin-mocha-dark-cursors";
|
accent = "dark";
|
||||||
gtk.enable = true;
|
};
|
||||||
x11.enable = true;
|
gtk.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
icon.enable = true;
|
||||||
|
};
|
||||||
|
qt.style.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
apply = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# For screen sharing to work
|
# For screen sharing to work
|
||||||
|
@ -86,6 +92,7 @@ in {
|
||||||
checkConfig = false;
|
checkConfig = false;
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
catppuccin.enable = true;
|
||||||
swaynag.enable = true;
|
swaynag.enable = true;
|
||||||
wrapperFeatures.gtk = true; # so that gtk works properly
|
wrapperFeatures.gtk = true; # so that gtk works properly
|
||||||
systemd.enable = true; # needed this for screen sharing to work
|
systemd.enable = true; # needed this for screen sharing to work
|
||||||
|
@ -94,27 +101,43 @@ in {
|
||||||
inherit terminal menu left right up down modifier;
|
inherit terminal menu left right up down modifier;
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
|
|
||||||
|
# Use catppuccin colors
|
||||||
colors = {
|
colors = {
|
||||||
|
background = "$base";
|
||||||
focused = {
|
focused = {
|
||||||
border = "#2B3C44";
|
border = "$lavender";
|
||||||
background = "#4E3D45";
|
background = "$base";
|
||||||
text = "#FFFFFF";
|
text = "$text";
|
||||||
indicator = "#333333";
|
indicator = "$rosewater";
|
||||||
childBorder = "#000000";
|
childBorder = "$lavender";
|
||||||
};
|
};
|
||||||
focusedInactive = {
|
focusedInactive = {
|
||||||
border = "#484848";
|
border = "$overlay0";
|
||||||
background = "#333333";
|
background = "$base";
|
||||||
text = "#FFFFFF";
|
text = "$text";
|
||||||
indicator = "#000000";
|
indicator = "$rosewater";
|
||||||
childBorder = "#000000";
|
childBorder = "$overlay0";
|
||||||
};
|
};
|
||||||
unfocused = {
|
unfocused = {
|
||||||
border = "#484848";
|
border = "$overlay0";
|
||||||
background = "#333333";
|
background = "$base";
|
||||||
text = "#FFFFFF";
|
text = "$text";
|
||||||
indicator = "#000000";
|
indicator = "$rosewater";
|
||||||
childBorder = "#000000";
|
childBorder = "$overlay0";
|
||||||
|
};
|
||||||
|
urgent = {
|
||||||
|
border = "$peach";
|
||||||
|
background = "$base";
|
||||||
|
text = "$peach";
|
||||||
|
indicator = "$overlay0";
|
||||||
|
childBorder = "$peach";
|
||||||
|
};
|
||||||
|
placeholder = {
|
||||||
|
border = "$overlay0";
|
||||||
|
background = "$base";
|
||||||
|
text = "$text";
|
||||||
|
indicator = "$overlay0";
|
||||||
|
childBorder = "$overlay0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
24
packages/catppuccin-swaync/default.nix
Normal file
24
packages/catppuccin-swaync/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
flavor ? "mocha",
|
||||||
|
font ? "Hack Nerd Font",
|
||||||
|
fetchurl,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "catppuccin-swaync";
|
||||||
|
version = "0.2.3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/catppuccin/swaync/releases/download/v${version}/${flavor}.css";
|
||||||
|
hash = "sha256-Hie/vDt15nGCy4XWERGy1tUIecROw17GOoasT97kIfc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
donBuild = true;
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out"
|
||||||
|
sed 's/Ubuntu Nerd Font/${font}/g' "$src" > "$out/catppuccin.css"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue