2022-05-06 03:01:56 +00:00
|
|
|
{ config, pkgs, ... }:
|
2022-04-29 01:23:43 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
ignorePatterns = ''
|
|
|
|
!.env*
|
|
|
|
!.github/
|
|
|
|
!.gitignore
|
|
|
|
!*.tfvars
|
|
|
|
.terraform/
|
|
|
|
.target/
|
2022-04-29 01:40:21 +00:00
|
|
|
/Library/'';
|
2022-04-29 01:23:43 +00:00
|
|
|
|
|
|
|
in {
|
2022-04-28 23:20:46 +00:00
|
|
|
|
2022-05-06 03:01:56 +00:00
|
|
|
home-manager.users.${config.user} = {
|
2022-04-29 01:40:21 +00:00
|
|
|
|
2022-04-30 14:21:43 +00:00
|
|
|
home.packages = with pkgs; [
|
2022-04-30 23:28:19 +00:00
|
|
|
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 # Batch rename files
|
|
|
|
dig # DNS lookup
|
2022-04-29 01:40:21 +00:00
|
|
|
];
|
|
|
|
|
2022-05-06 13:29:25 +00:00
|
|
|
programs.zoxide.enable = true; # Shortcut jump command
|
|
|
|
|
2022-04-30 14:21:43 +00:00
|
|
|
home.file = {
|
2022-04-29 01:40:21 +00:00
|
|
|
".rgignore".text = ignorePatterns;
|
|
|
|
".fdignore".text = ignorePatterns;
|
2022-04-30 23:28:19 +00:00
|
|
|
".digrc".text = "+noall +answer"; # Cleaner dig commands
|
2022-04-29 01:40:21 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2022-05-17 23:17:36 +00:00
|
|
|
body = "${pkgs.prettyping}/bin/prettyping --nolegend $target";
|
2022-04-30 14:21:43 +00:00
|
|
|
};
|
|
|
|
qr = {
|
|
|
|
body =
|
2022-05-17 23:17:36 +00:00
|
|
|
"${pkgs.qrencode}/bin/qrencode $argv[1] -o /tmp/qr.png | open /tmp/qr.png"; # Fix for non-macOS
|
2022-04-30 14:21:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-04-29 00:46:00 +00:00
|
|
|
};
|
|
|
|
|
2022-04-28 23:20:46 +00:00
|
|
|
}
|