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

View File

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

View File

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

View File

@ -1,6 +1,7 @@
{ {
lib,
homedir, homedir,
lib,
pkgs,
... ...
}: }:
let 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 # Allow usage of aliases when using sudo
alias ls='ls --color'
alias less='less -R' 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 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" r: %{time_starttransfer}s\n ----------\n time_total: %{time_total}s\n\" -o /dev/null"