Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Last active September 1, 2024 08:27
Show Gist options
  • Save danidiaz/90c59c4c77f511e18adb1e53506abfd0 to your computer and use it in GitHub Desktop.
Save danidiaz/90c59c4c77f511e18adb1e53506abfd0 to your computer and use it in GitHub Desktop.
Nix flake for AWS cli on Linux
{
description = "AWS cli devshell";
inputs = {
nixpkgs.url = "nixpkgs/24.05";
};
outputs = { self, nixpkgs }:
let system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default =
pkgs.mkShell
{
packages = [
pkgs.awscli2
pkgs.jq
];
shellHook = ''
export PS1='aws \W$ '
'';
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment