feat: Add more stuff

This commit is contained in:
2024-11-14 10:15:05 +05:00
parent 6bef6874b7
commit f1d4ed4e58
8 changed files with 307 additions and 7 deletions

View File

@@ -3,19 +3,36 @@
{
programs.alacritty = {
enable = true;
settings = {
window = {
padding = { x = 4; y = 8; };
decorations = "full";
opacity = 1;
startup_mode = "Windowed";
title = "Alacritty";
dynamic_title = true;
decorations_theme_variant = "None";
};
env = {
"TERM" = "alacritty";
TERM = "xterm-256color";
};
terminal.shell.program = "zsh";
font = {
size = 12;
size = 14;
normal.family = font;
bold.family = font;
italic.family = font;
};
cursor = {
style = "Block";
};
live_config_reload = true;
};
};
}

View File

@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
cfg = {
# Gnome shell native connector
enableGnomeExtensions = true;
};
};
};
}

View File

@@ -20,6 +20,9 @@
user = {
signingKey = "~/.ssh/id_ed25519.pub";
};
pull = {
rebase = true;
};
};
};
}

View File

@@ -7,14 +7,26 @@
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initExtraFirst = ''
[[ "$TERM" == "linux" ]] && return
'';
initExtra = ''
source <(nh completions --shell zsh)
eval "$(zoxide init zsh)"
[[ -z "$TERM" ]] && exec tmux
'';
shellAliases = {
update = "sudo nixos-rebuild switch --flake ~/.dotfiles && home-manager switch --flake ~/.dotfiles";
".." = "cd ..";
ls = "exa";
vim = "nvim";
grep = "rg";
du = "dust";
rm = "rip";
cp = "xcp";
update-os = "nh os switch ~/.dotfiles";
update-home = "nh home switch ~/.dotfiles";
};
history = {