dotfiles/modules/shell/utilities.nix

58 lines
890 B
Nix
Raw Normal View History

{ pkgs, user, ... }:
2022-04-29 01:23:43 +00:00
let
ignorePatterns = ''
!.env*
!.github/
!.gitignore
!*.tfvars
.terraform/
.target/
/Library/'';
2022-04-29 01:23:43 +00:00
in {
2022-04-28 23:20:46 +00:00
2022-04-30 14:21:43 +00:00
home-manager.users.${user} = {
2022-04-30 14:21:43 +00:00
home.packages = with pkgs; [
unzip
rsync
ripgrep
bat
fd
sd
jq
tealdeer
tree
htop
glow
2022-04-30 14:21:43 +00:00
prettyping
qrencode
];
2022-04-30 14:21:43 +00:00
home.file = {
".rgignore".text = ignorePatterns;
".fdignore".text = ignorePatterns;
};
2022-04-30 14:21:43 +00:00
programs.fish.shellAbbrs = {
cat = "bat"; # Swap cat with bat
};
programs.fish.functions = {
ping = {
description = "Improved ping";
argumentNames = "target";
body = "prettyping --nolegend $target";
};
qr = {
body =
"qrencode $argv[1] -o /tmp/qr.png | open /tmp/qr.png"; # Fix for non-macOS
};
};
2022-04-29 00:46:00 +00:00
};
2022-04-28 23:20:46 +00:00
}