dotfiles/modules/darwin/utilities.nix

72 lines
1.8 KiB
Nix
Raw Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
2022-10-26 00:22:17 +00:00
{
2022-06-14 03:43:49 +00:00
2024-04-20 13:42:06 +00:00
unfreePackages = [
"consul"
"vault-bin"
2024-05-14 20:01:21 +00:00
"teams"
2024-04-20 13:42:06 +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
home.packages = [
pkgs.visidata # CSV inspector
pkgs.dos2unix # Convert Windows text files
pkgs.inetutils # Includes telnet
pkgs.pandoc # Convert text documents
pkgs.mpd # TUI slideshows
pkgs.mpv # Video player
pkgs.gnupg # Encryption
pkgs.awscli2
pkgs.ssm-session-manager-plugin
pkgs.awslogs
2024-07-10 19:47:38 +00:00
pkgs.stu # TUI for AWS S3
pkgs.google-cloud-sdk
pkgs.vault-bin
pkgs.consul
pkgs.noti # Create notifications programmatically
pkgs.ipcalc # Make IP network calculations
pkgs.teams
pkgs.cloudflared # Allow connecting to Cloudflare tunnels
(pkgs.writeShellApplication {
2022-10-26 00:22:17 +00:00
name = "ocr";
runtimeInputs = [ pkgs.tesseract ];
text = builtins.readFile ../../modules/common/shell/bash/scripts/ocr.sh;
2022-10-26 00:22:17 +00:00
})
(pkgs.writeShellApplication {
name = "ec2";
runtimeInputs = [
pkgs.awscli2
pkgs.jq
pkgs.fzf
];
text = builtins.readFile ../../modules/common/shell/bash/scripts/aws-ec2.sh;
})
2024-06-17 01:00:28 +00:00
(pkgs.writeShellApplication {
name = "tfinit";
runtimeInputs = [
pkgs.terraform
pkgs.gawk
pkgs.git
];
text = builtins.readFile ../../modules/common/shell/bash/scripts/terraform-init.sh;
})
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
}