mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 03:42:56 +00:00
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
ignorePatterns = ''
|
|
!.env*
|
|
!.github/
|
|
!.gitignore
|
|
!*.tfvars
|
|
.terraform/
|
|
.target/
|
|
/Library/'';
|
|
|
|
in {
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
home.packages = with pkgs; [
|
|
unzip # Extract zips
|
|
rsync # Copy folders
|
|
ripgrep # grep
|
|
bat # cat
|
|
fd # find
|
|
sd # sed
|
|
jq # JSON manipulation
|
|
tealdeer # Cheatsheets
|
|
tree # View directory hierarchy
|
|
htop # Show system processes
|
|
glow # Pretty markdown previews
|
|
qrencode # Generate qr codes
|
|
vimv-rs # Batch rename files
|
|
dig # DNS lookup
|
|
lf # File viewer
|
|
whois # Lookup IPs
|
|
age # Encryption
|
|
];
|
|
|
|
programs.zoxide.enable = true; # Shortcut jump command
|
|
|
|
home.file = {
|
|
".rgignore".text = ignorePatterns;
|
|
".fdignore".text = ignorePatterns;
|
|
".digrc".text = "+noall +answer"; # Cleaner dig commands
|
|
};
|
|
|
|
programs.fish.shellAbbrs = {
|
|
cat = "bat"; # Swap cat with bat
|
|
};
|
|
|
|
programs.fish.functions = {
|
|
ping = {
|
|
description = "Improved ping";
|
|
argumentNames = "target";
|
|
body = "${pkgs.prettyping}/bin/prettyping --nolegend $target";
|
|
};
|
|
qr = {
|
|
body =
|
|
"${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | open /tmp/qr.png"; # Fix for non-macOS
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
}
|