nix-config/users/common/programs.nix
2022-12-22 22:38:12 -03:00

82 lines
2.3 KiB
Nix

{ specialArgs, inputs, config, pkgs, lib, ... }:
{
programs = {
password-store.enable = true;
bash = {
enable = true;
historyFile = "~/.cache/bash_history";
};
nix-index = {
enable = true;
enableFishIntegration = true;
};
micro = {
enable = true;
settings = {
clipboard = "terminal";
mkparents = true;
scrollbar = true;
tabstospaces = true;
tabsize = 2;
};
};
fish = {
enable = true;
interactiveShellInit = "any-nix-shell fish --info-right | source";
loginShellInit = "any-nix-shell fish --info-right | source";
shellAliases = {
d = "kitty +kitten diff";
nano = "micro";
wget = "wget --hsts-file=\"$XDG_DATA_HOME/wget-hsts\"";
};
functions = {
fish_greeting = "";
tsh = "ssh -o RequestTTY=yes $argv tmux -u -CC new -A -s tmux-main";
};
shellInit = ''
set -g theme_date_format "+%H:%M"
set -g theme_date_timezone America/Bahia
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_color_scheme dark
set -g theme_nerd_fonts yes
set -g theme_display_git_default_branch yes
set -g -x FONTCONFIG_FILE ${pkgs.fontconfig.out}/etc/fonts/fonts.conf
'';
plugins = [
{
name = "bobthefish";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "theme-bobthefish";
rev = "2dcfcab653ae69ae95ab57217fe64c97ae05d8de";
sha256 = "jBbm0wTNZ7jSoGFxRkTz96QHpc5ViAw9RGsRBkCQEIU=";
};
}
{
name = "bang-bang";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-bang-bang";
rev = "f969c618301163273d0a03d002614d9a81952c1e";
sha256 = "A8ydBX4LORk+nutjHurqNNWFmW6LIiBPQcxS3x4nbeQ=";
};
}
{
name = "fzf.fish";
src = pkgs.fetchFromGitHub {
owner = "PatrickF1";
repo = "fzf.fish";
rev = "v9.2";
sha256 = "XmRGe39O3xXmTvfawwT2mCwLIyXOlQm7f40mH5tzz+s=";
};
}
];
};
tmux = {
enable = true;
clock24 = true;
extraConfig = "set -g mouse on";
};
};
}