dotfiles/modules/darwin/utilities.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

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