mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 09:35:37 +00:00
58 lines
903 B
Nix
58 lines
903 B
Nix
{ pkgs, identity, ... }:
|
|
|
|
let
|
|
|
|
ignorePatterns = ''
|
|
!.env*
|
|
!.github/
|
|
!.gitignore
|
|
!*.tfvars
|
|
.terraform/
|
|
.target/
|
|
/Library/'';
|
|
|
|
in {
|
|
|
|
home-manager.users.${identity.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
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
}
|