Compare commits

..

3 Commits

Author SHA1 Message Date
Lukas Cech
42badaa5be Fix aws cli alias and provide region specific finders for veracode 2025-01-14 16:31:30 +01:00
Lukas Cech
b6516e48ac Add coreutils to darwin to get latest versions 2025-01-14 16:31:16 +01:00
Lukas Cech
56a2ca7c5a Add veracode aws cli searcher 2025-01-13 15:11:39 +01:00
5 changed files with 39 additions and 18 deletions

View File

@ -47,7 +47,9 @@ in
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
curl
git
coreutils
vim
wireguard-tools
];

View File

@ -10,19 +10,15 @@
"keepassxc"
];
system.defaults = {
dock = {
persistent-apps = [
"/Applications/Cursor.app"
"/Applications/Firefox.app"
"/Applications/Ghostty.app"
"/Applications/Microsoft Outlook.app"
"/Applications/Slack.app"
"/Applications/Spotify.app"
"/Applications/Thunderbird.app"
"/Applications/zoom.us.app"
"/System/Applications/Notes.app"
];
};
};
system.defaults.dock.persistent-apps = [
"/Applications/Cursor.app"
"/Applications/Firefox.app"
"/Applications/Ghostty.app"
"/Applications/Microsoft Outlook.app"
"/Applications/Slack.app"
"/Applications/Spotify.app"
"/Applications/Thunderbird.app"
"/Applications/zoom.us.app"
"/System/Applications/Notes.app"
];
}

View File

@ -13,7 +13,7 @@ in
{
imports = [
(import ./veracode/aws-cli.nix {
inherit homedir lib;
inherit homedir lib pkgs;
})
];

View File

@ -1,6 +1,7 @@
{
lib,
homedir,
lib,
pkgs,
...
}:
let
@ -262,4 +263,27 @@ in
)}
'';
};
programs.zsh.shellAliases = {
veracode-find = ''${pkgs.writeShellScript "veracode-find" ''
for profile in $(aws configure list-profiles | grep -E '^(us|eu)-'); do
echo "=== $profile ==="
aws --profile $profile "$@";
done
''}'';
veracode-find-eu = ''${pkgs.writeShellScript "veracode-find" ''
for profile in $(aws configure list-profiles | grep -E '^(eu)-'); do
echo "=== $profile ==="
aws --profile $profile "$@";
done
''}'';
veracode-find-us = ''${pkgs.writeShellScript "veracode-find" ''
for profile in $(aws configure list-profiles | grep -E '^(us)-'); do
echo "=== $profile ==="
aws --profile $profile "$@";
done
''}'';
};
}

View File

@ -1,5 +1,4 @@
# Allow usage of aliases when using sudo
alias ls='ls --color'
alias less='less -R'
alias curlTiming="curl -w \" time_namelookup: %{time_namelookup}s\n time_connect: %{time_connect}s\n time_appconnect: %{time_appconnect}s\n time_pretransfer: %{time_pretransfer}s\n time_redirect: %{time_redirect}s\n time_starttransfe
r: %{time_starttransfer}s\n ----------\n time_total: %{time_total}s\n\" -o /dev/null"