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
./gnupg.nix
./nixvim
./zellij.nix
./wezterm.nix
./browsers.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, ... }:
let
catppuccin-fish = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "fish";
rev = "a3b9eb5eaf2171ba1359fe98f20d226c016568cf";
hash = "sha256-shQxlyoauXJACoZWtRUbRMxmm10R8vOigXwjxBhG8ng=";
};
in
{
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
fish_vi_key_bindings # Enable Vi mode
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
fish_config theme choose "Catppuccin Frappe"
'';
shellAbbrs = { cd = "z"; ngc = "sudo nix-collect-garbage -d"; };
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.polarity = "dark";
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
stylix.autoEnable = true;
stylix.cursor = {
name = "Adwaita";
@ -14,7 +15,7 @@
stylix.fonts = {
monospace = {
package = pkgs.nerdfonts.override { fonts = [ "Monaspace" ]; };
name = "MonaspiceNe Nerd Font";
name = "MonaspiceNe Nerd Font Mono";
};
sizes = {
terminal = 14;