add wezterm and move zellij to shell programs

This commit is contained in:
Anthony Rodriguez 2024-08-26 23:56:43 +02:00
parent 2475be407d
commit a844c71ef3
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
6 changed files with 38 additions and 11 deletions

View file

@ -5,7 +5,7 @@
./git.nix ./git.nix
./gnupg.nix ./gnupg.nix
./nixvim ./nixvim
./zellij.nix ./wezterm.nix
./browsers.nix ./browsers.nix
./miscellaneous.nix ./miscellaneous.nix
]; ];

View file

@ -0,0 +1,17 @@
{ ... }:
{
programs.wezterm = {
enable = true;
extraConfig = ''
local wezterm = require 'wezterm'
return {
font = wezterm.font 'MonaspiceNe Nerd Font',
front_end = "WebGpu",
enable_tab_bar = false,
enable_wayland = false
}
'';
};
}

View file

@ -1,5 +1,11 @@
{ ... }: { ... }:
{ {
imports = [ ./fish.nix ./starship.nix ./zoxide.nix ./direnv.nix ]; imports = [
./fish.nix
./starship.nix
./zoxide.nix
./direnv.nix
./zellij.nix
];
} }

View file

@ -1,22 +1,25 @@
{ pkgs, ... }: { pkgs, ... }:
let
catppuccin-fish = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "fish";
rev = "a3b9eb5eaf2171ba1359fe98f20d226c016568cf";
hash = "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=";
};
in
{ {
programs.fish = { programs.fish = {
enable = true; enable = true;
interactiveShellInit = '' interactiveShellInit = ''
set fish_greeting # Disable greeting set fish_greeting # Disable greeting
fish_vi_key_bindings # Enable Vi mode fish_vi_key_bindings # Enable Vi mode
fish_config theme choose "Catppuccin Frappe"
function fzf --wraps=fzf --description="Use fzf-tmux if in tmux session"
if set --query TMUX
fzf-tmux $argv
else
command fzf $argv
end
end
''; '';
shellAbbrs = { cd = "z"; ngc = "sudo nix-collect-garbage -d"; }; shellAbbrs = { cd = "z"; ngc = "sudo nix-collect-garbage -d"; };
plugins = [ { name = "fzf"; src = pkgs.fishPlugins.fzf.src; } ]; plugins = [ { name = "fzf"; src = pkgs.fishPlugins.fzf.src; } ];
}; };
xdg.configFile."fish/themes/Catppuccin Frappe.theme".source = "${catppuccin-fish}/themes/Catppuccin Frappe.theme";
} }

View file

@ -5,6 +5,7 @@
stylix.image = ../lucy.jpg; stylix.image = ../lucy.jpg;
stylix.polarity = "dark"; stylix.polarity = "dark";
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml"; stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
stylix.autoEnable = true;
stylix.cursor = { stylix.cursor = {
name = "Adwaita"; name = "Adwaita";
@ -14,7 +15,7 @@
stylix.fonts = { stylix.fonts = {
monospace = { monospace = {
package = pkgs.nerdfonts.override { fonts = [ "Monaspace" ]; }; package = pkgs.nerdfonts.override { fonts = [ "Monaspace" ]; };
name = "MonaspiceNe Nerd Font"; name = "MonaspiceNe Nerd Font Mono";
}; };
sizes = { sizes = {
terminal = 14; terminal = 14;