Skip to content

Instantly share code, notes, and snippets.

@NakedFerret
Created October 18, 2024 15:10
Show Gist options
  • Save NakedFerret/bc4aff4cb16d69aef1b8119bfcc7842c to your computer and use it in GitHub Desktop.
Save NakedFerret/bc4aff4cb16d69aef1b8119bfcc7842c to your computer and use it in GitHub Desktop.
This is an example configuration file used by `nix-shell`. By default `nix-shell` looks for either 'shell.nix' or 'default.nix' in the current path. Everything specified in `buildInputs` is available once inside the shell. To find the right name for each utility, refer to https://search.nixos.org/packages. To initialize the shell, simply run `ni…
with (import <nixpkgs> {});
mkShell {
buildInputs = [
rsync
python3
morph
nixpkgs-fmt
livebook
zellij
awscli2
mix2nix
elixir
inotify-tools
alejandra
];
shellHook = ''
mkdir -p prod_secrets
mkdir -p qa_secrets
mkdir -p /tmp/checkboxes
. qa_secrets/s3-user-creds.env
aws configure set --profile wasabi endpoint_url https://s3.wasabisys.com
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID --profile wasabi
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY --profile wasabi
export REALTIME_BUCKET=archive-qa.onemillionandonecheckboxes.com
export AWS_PROFILE=wasabi
export SSH_SKIP_HOST_KEY_CHECK=1
export AUTOSAVE_DIR=/tmp/checkboxes
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment