Skip to content

Instantly share code, notes, and snippets.

@zimbatm
Created January 21, 2020 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zimbatm/5bde7e7c27a17fb57a41d2ad0b1754b7 to your computer and use it in GitHub Desktop.
Save zimbatm/5bde7e7c27a17fb57a41d2ad0b1754b7 to your computer and use it in GitHub Desktop.
name = "etherbrowser"
packages = [
# generic tooling
"file",
"gitAndTools.git",
"gitAndTools.git-crypt",
"gnugrep",
"goreman",
"reflex",
# nix development
"cachix",
"nixpkgs-fmt",
# bash development
"shellcheck",
# go development
"go",
"gopls",
"golang-tools",
"go-outline",
"capnproto",
"protobuf3_10",
"jq",
# node development
"nodejs",
"autoconf",
"automake",
"gettext",
"gnum4",
"gnused",
"libtool",
"nasm",
"pkgconfig",
"zlib",
# terraform development
"my-terraform",
"tflint",
"terraform-lsp",
]
profile = '''
repo_root=$(git rev-parse --show-toplevel)
export PATH=$repo_root/bin:$repo_root/build/env/bin:$PATH
export NIX_PATH=nixpkgs=$repo_root/nix
# load the secrets if available
if file "$repo_root/secrets.sh" | grep ASCII &>/dev/null ; then
source "$repo_root/secrets.sh"
else
echo "ERROR: use git-crypt unlock to load the secrets" >&2
fi
'''
interactive = '''
PS1='\[\033[0;32;40m\][etherbrowser${PWD##$repo_root}]$\[\033[0m\] '
'''
[env]
# go settings
GO111MODULE = "on"
CGO_ENABLED = "0"
# unset GOPATH and GOROOT
GOPATH = false
GOROOT = false
# terraform cloud without the remote execution part
TF_FORCE_LOCAL_BACKEND = "1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment