mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 06:22:56 +00:00
58 lines
890 B
Nix
58 lines
890 B
Nix
{ pkgs, user, ... }:
|
|
|
|
let
|
|
|
|
ignorePatterns = ''
|
|
!.env*
|
|
!.github/
|
|
!.gitignore
|
|
!*.tfvars
|
|
.terraform/
|
|
.target/
|
|
/Library/'';
|
|
|
|
in {
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
home.packages = with pkgs; [
|
|
unzip
|
|
rsync
|
|
ripgrep
|
|
bat
|
|
fd
|
|
sd
|
|
jq
|
|
tealdeer
|
|
tree
|
|
htop
|
|
glow
|
|
prettyping
|
|
qrencode
|
|
];
|
|
|
|
home.file = {
|
|
".rgignore".text = ignorePatterns;
|
|
".fdignore".text = ignorePatterns;
|
|
};
|
|
|
|
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
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
}
|