nixcfg/home/shell/default.nix

98 lines
2.5 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
home.packages = with pkgs; [
# backblaze-b2
curl
gh
git
nixfmt
2024-03-24 10:59:08 -04:00
python3
ruby
wget
];
programs.bash = {
enable = true;
enableCompletion = true;
initExtra = ''
export PS1="[\[$(tput setaf 27)\]\u\[$(tput setaf 135)\]@\[$(tput setaf 45)\]\h:\[$(tput setaf 33)\]\w] \[$(tput sgr0)\]$ "
'';
};
programs.emacs = {
enable = true;
2024-03-22 18:26:42 -04:00
extraPackages = ( epkgs: (with epkgs; [
better-defaults
markdown-mode
nix-mode
2024-03-22 18:26:42 -04:00
org
org-bullets
org-journal
org-roam
ox-pandoc
projectile
python
treemacs
2024-03-22 22:07:14 -04:00
treemacs-projectile
treemacs-tab-bar
use-package
2024-03-22 21:11:57 -04:00
yaml
yaml-mode
2024-03-22 18:26:42 -04:00
])
);
2024-03-22 22:11:47 -04:00
package = pkgs.emacs-nox;
2024-03-24 10:59:08 -04:00
extraConfig = builtins.readFile ./emacs.el;
};
programs.eza = {
enable = true;
git = true;
icons = true;
extraOptions = [
"--group-directories-first"
"--header"
];
};
programs.fzf = {
enable = true;
tmux.enableShellIntegration = true;
};
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
defaultEditor = true;
};
programs.nnn.enable = true;
programs.tmux = {
enable = true;
mouse = true;
newSession = true;
2024-03-22 18:26:42 -04:00
plugins = with pkgs; [
tmuxPlugins.weather
tmuxPlugins.better-mouse-mode
tmuxPlugins.cpu
tmuxPlugins.battery
2024-03-22 21:11:57 -04:00
tmuxPlugins.resurrect
2024-03-22 18:26:42 -04:00
];
terminal = "tmux-256color";
extraConfig = ''
set-option -g status-bg blue
set-option -g pane-active-border-style fg=blue
2024-03-22 18:26:42 -04:00
set-option -g @tmux-weather-format "%x+%t"
set-option -g @tmux-weather-units "u"
set -g status-right '#{cpu_percentage} CPU | #{battery_percentage} BAT | %I:%M %p | #{weather}'
run-shell ${pkgs.tmuxPlugins.weather}/share/tmux-plugins/weather/tmux-weather.tmux
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux
run-shell ${pkgs.tmuxPlugins.battery}/share/tmux-plugins/battery/battery.tmux
2024-03-22 21:11:57 -04:00
run-shell ${pkgs.tmuxPlugins.battery}/share/tmux-plugins/resurrect/resurrect.tmux
'';
};
}