nix-config/modules/basic-tools/default.nix
2025-02-23 02:34:20 +01:00

89 lines
1.3 KiB
Nix

{ pkgs, config, ... }:
{
imports = [
./fzf.nix
./multiplexers.nix
./nix.nix
./nix-ld.nix
./zsh.nix
./fish.nix
];
environment.systemPackages =
with pkgs;
[
bat
fd
file
gnupg
glow
htop
irssi
killall
neovim
ripgrep
tealdeer
traceroute
tcpdump
tree
(aspellWithDicts (
ps: with ps; [
en
en-science
en-computers
ru
nl
]
))
exfatprogs
nmap
bind
lf
man-pages
unzip
usbutils
pciutils
ouch
cryptsetup
sshfs
whois
mtr
joshuto
]
++ (
if config.networking.hostName == "toaster" then
[
gitFull
git-lfs
]
else
[ git ]
);
environment.variables =
let
editorconf =
if config.services.emacs.defaultEditor then
{ }
else
{
EDITOR = "nvim";
};
in
{
PAGER = "less";
LESS = "-X -R -F";
}
// editorconf;
environment.shellAliases = {
vim = "nvim";
grep = "grep --color=auto";
};
users.defaultUserShell = pkgs.zsh; # keep root shell posix compatible
programs.iftop.enable = true;
programs.mosh.enable = true;
}