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/'';
|
2024-04-20 13:42:06 +00:00
|
|
|
in
|
|
|
|
{
|
2022-04-28 23:20:46 +00:00
|
|
|
|
2022-11-05 17:41:09 +00:00
|
|
|
config = {
|
2022-04-29 01:40:21 +00:00
|
|
|
|
2022-11-05 17:41:09 +00:00
|
|
|
home-manager.users.${config.user} = {
|
2022-04-29 01:40:21 +00:00
|
|
|
|
2022-11-05 17:41:09 +00:00
|
|
|
home.packages = with pkgs; [
|
2023-03-13 00:09:56 +00:00
|
|
|
age # Encryption
|
|
|
|
bc # Calculator
|
2024-03-06 16:19:37 +00:00
|
|
|
delta # Fancy diffs
|
2024-03-06 16:22:35 +00:00
|
|
|
difftastic # Other fancy diffs
|
2023-03-13 00:09:56 +00:00
|
|
|
dig # DNS lookup
|
|
|
|
fd # find
|
|
|
|
htop # Show system processes
|
2023-07-28 22:49:48 +00:00
|
|
|
killall # Force quit
|
2023-03-13 00:09:56 +00:00
|
|
|
inetutils # Includes telnet, whois
|
2024-01-05 14:09:27 +00:00
|
|
|
jless # JSON viewer
|
|
|
|
jo # JSON output
|
2023-03-13 00:09:56 +00:00
|
|
|
jq # JSON manipulation
|
|
|
|
lf # File viewer
|
2024-11-16 23:47:26 +00:00
|
|
|
osc # Clipboard over SSH
|
2023-03-13 00:09:56 +00:00
|
|
|
qrencode # Generate qr codes
|
2022-11-05 17:41:09 +00:00
|
|
|
rsync # Copy folders
|
2024-02-04 15:33:33 +00:00
|
|
|
ren # Rename files
|
|
|
|
# rep # Replace text in files
|
2022-11-05 17:41:09 +00:00
|
|
|
ripgrep # grep
|
|
|
|
sd # sed
|
|
|
|
tealdeer # Cheatsheets
|
|
|
|
tree # View directory hierarchy
|
|
|
|
vimv-rs # Batch rename files
|
2023-03-13 00:09:56 +00:00
|
|
|
unzip # Extract zips
|
2023-07-30 03:56:41 +00:00
|
|
|
dua # File sizes (du)
|
|
|
|
du-dust # Disk usage tree (ncdu)
|
|
|
|
duf # Basic disk information (df)
|
2022-11-05 17:41:09 +00:00
|
|
|
];
|
2022-05-06 13:29:25 +00:00
|
|
|
|
2022-11-05 17:41:09 +00:00
|
|
|
programs.zoxide.enable = true; # Shortcut jump command
|
2022-04-29 01:40:21 +00:00
|
|
|
|
2022-11-05 17:41:09 +00:00
|
|
|
home.file = {
|
|
|
|
".rgignore".text = ignorePatterns;
|
|
|
|
".digrc".text = "+noall +answer"; # Cleaner dig commands
|
|
|
|
};
|
2022-04-30 14:21:43 +00:00
|
|
|
|
2024-01-03 19:28:50 +00:00
|
|
|
xdg.configFile."fd/ignore".text = ignorePatterns;
|
|
|
|
|
2022-11-05 17:41:09 +00:00
|
|
|
programs.bat = {
|
|
|
|
enable = true; # cat replacement
|
2023-06-24 21:15:20 +00:00
|
|
|
config = {
|
|
|
|
theme = config.theme.colors.batTheme;
|
|
|
|
pager = "less -R"; # Don't auto-exit if one screen
|
|
|
|
};
|
2022-04-30 14:21:43 +00:00
|
|
|
};
|
2022-11-05 17:41:09 +00:00
|
|
|
|
|
|
|
programs.fish.functions = {
|
|
|
|
ping = {
|
|
|
|
description = "Improved ping";
|
|
|
|
argumentNames = "target";
|
|
|
|
body = "${pkgs.prettyping}/bin/prettyping --nolegend $target";
|
|
|
|
};
|
|
|
|
};
|
2022-04-30 14:21:43 +00:00
|
|
|
};
|
2022-04-29 00:46:00 +00:00
|
|
|
};
|
2022-04-28 23:20:46 +00:00
|
|
|
}
|