nix-system/terminal-software.nix
2024-08-25 15:54:13 +02:00

68 lines
1.4 KiB
Nix

{ lib, config, pkgs, ... }: {
home.packages = with pkgs; [
entr
trash-cli
nix-output-monitor
unzip
gnumake
pandoc
htop
ffmpeg-full
wget
dtrx
glances
];
programs.neovim = {
enable = true;
viAlias = true;
defaultEditor = true;
extraPackages = with pkgs; [
nodejs_22
gcc
ocamlPackages.lsp
ocamlPackages.ocamlformat
cargo
nixd
nixfmt
lua-language-server
ocaml
ocamlPackages.ocaml-lsp
pyright
ripgrep
];
};
xdg.mimeApps.defaultApplications = { "text/plain" = "nvim.desktop"; };
programs.tmux = {
enable = true;
historyLimit = 600000;
escapeTime = 10;
keyMode = "vi";
mouse = true;
terminal = "tmux-256color";
extraConfig = ''
unbind-key 'Space'
bind-key 'Space' copy-mode
set -g status-right "#{net_speed} #{cpu_percentage}"
set -g default-terminal "tmux-256color"
run-shell ${pkgs.tmuxPlugins.net-speed}/share/tmux-plugins/net-speed/net_speed.tmux
run-shell ${pkgs.tmuxPlugins.cpu}/share/tmux-plugins/cpu/cpu.tmux
'';
plugins = with pkgs.tmuxPlugins; [ net-speed ];
};
programs.git = {
enable = true;
userName = config.home.username;
userEmail = "${config.home.username}@domain.xyz";
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.pistol.enable = true;
}