configuration.nix/home/programs/tui.nix

73 lines
1.7 KiB
Nix
Raw Normal View History

2023-04-04 09:58:29 +05:30
{ config, pkgs, ... }: {
2023-03-15 22:11:59 +05:30
2023-03-22 23:27:24 +05:30
xdg.desktopEntries."btop".name = "btop++";
xdg.desktopEntries."btop".exec = "btop";
xdg.desktopEntries."btop".noDisplay = true;
2023-03-15 22:11:59 +05:30
programs = {
bat = {
enable = true;
config = {
theme = "Dracula";
};
};
btop = {
enable = true;
settings = {
color_theme = "dracula";
vim_keys = true;
update_ms = 1000;
};
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
exa = {
enable = true;
enableAliases = true;
2023-03-29 21:48:55 +05:30
extraOptions = [ "--group-directories-first" "--group" ];
2023-03-15 22:11:59 +05:30
git = true;
icons = true;
};
2023-03-27 22:14:56 +05:30
fzf.enable = true;
2023-03-15 22:11:59 +05:30
starship = {
enable = true;
settings = {
add_newline = false;
git_metrics.disabled = false;
};
};
2023-03-27 22:14:56 +05:30
zoxide.enable = true;
2023-03-15 22:11:59 +05:30
zsh = {
enable = true;
defaultKeymap = "viins";
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
history = {
expireDuplicatesFirst = true;
extended = true;
path = "${config.xdg.dataHome}/zsh/zsh_history";
};
initExtra = ''
bindkey -v '^?' backward-delete-char
'';
profileExtra = ''
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ] ; then
2023-04-05 22:39:22 +05:30
exec ${config.wayland.windowManager.hyprland.package}/bin/Hyprland
2023-03-15 22:11:59 +05:30
fi
'';
shellAliases = {
cat = "bat";
2023-03-27 22:14:56 +05:30
cd = "z";
2023-03-15 22:11:59 +05:30
cp = "cp -v";
grep = "grep --color=auto";
ln = "ln -v";
mv = "mv -v";
rebuild_system = "sudo nixos-rebuild --flake /persist/home/.nixos-config# --cores 0 --max-jobs 8";
};
};
};
}