dotfiles/modules/darwin/utilities.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-20 09:42:06 -04:00
{
config,
pkgs,
lib,
...
}:
2022-10-25 20:22:17 -04:00
{
2022-06-13 23:43:49 -04:00
2024-04-20 09:42:06 -04:00
unfreePackages = [
"consul"
"vault-bin"
];
2022-12-21 14:18:03 -07:00
home-manager.users.${config.user} = lib.mkIf pkgs.stdenv.isDarwin {
2022-06-13 23:43:49 -04:00
2022-06-18 13:17:11 -04:00
home.packages = with pkgs; [
2024-02-09 10:33:17 -05:00
visidata # CSV inspector
2022-06-13 23:43:49 -04:00
dos2unix # Convert Windows text files
inetutils # Includes telnet
youtube-dl # Convert web videos
pandoc # Convert text documents
mpd # TUI slideshows
2023-12-26 17:26:40 -07:00
mpv # Video player
gnupg # Encryption
2022-06-13 23:43:49 -04:00
awscli2
2024-03-26 11:21:32 -04:00
ssm-session-manager-plugin
2022-06-13 23:43:49 -04:00
awslogs
2022-09-21 16:58:04 -04:00
google-cloud-sdk
vault-bin
2022-09-21 16:58:04 -04:00
consul
2022-06-13 23:43:49 -04:00
noti # Create notifications programmatically
2022-10-07 03:31:14 +00:00
ipcalc # Make IP network calculations
(writeShellApplication {
2022-10-25 20:22:17 -04:00
name = "ocr";
runtimeInputs = [ tesseract ];
text = builtins.readFile ../../modules/common/shell/bash/scripts/ocr.sh;
2022-10-25 20:22:17 -04:00
})
2022-06-13 23:43:49 -04:00
];
2022-06-21 17:51:27 -04:00
programs.fish.shellAbbrs = {
# Add noti for ghpr in Darwin
ghpr = lib.mkForce "gh pr create && sleep 3 && noti gh run watch";
2022-08-14 20:43:10 -06:00
grw = lib.mkForce "noti gh run watch";
2022-07-25 23:15:26 -04:00
# Shortcut to edit hosts file
hosts = "sudo nvim /etc/hosts";
2022-06-21 17:51:27 -04:00
};
2022-06-18 13:17:11 -04:00
};
2022-06-13 23:43:49 -04:00
}