dotfiles/modules/darwin/utilities.nix

72 lines
1.8 KiB
Nix
Raw Permalink 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"
2025-01-06 11:03:48 -05:00
# "teams"
2024-04-20 09:42:06 -04:00
];
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
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 15:47:38 -04: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
2025-01-06 11:03:48 -05:00
# pkgs.teams
pkgs.cloudflared # Allow connecting to Cloudflare tunnels
(pkgs.writeShellApplication {
2022-10-25 20:22:17 -04:00
name = "ocr";
runtimeInputs = [ pkgs.tesseract ];
text = builtins.readFile ../../modules/common/shell/bash/scripts/ocr.sh;
2022-10-25 20:22:17 -04: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-16 19:00:28 -06: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-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
}