Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:25
Show Gist options
  • Select an option

  • Save dacr/477d2e4310e39ff68e2f16d9da76d0c3 to your computer and use it in GitHub Desktop.

Select an option

Save dacr/477d2e4310e39ff68e2f16d9da76d0c3 to your computer and use it in GitHub Desktop.
direnv cheat sheet / published by https://github.com/dacr/code-examples-manager #3f107fb3-d363-4dc3-b3b5-38c5094e1a71/4252532666ddde9e0dd121cbb0b5cd4b740237d3

direnv cheat sheet

direnv should be installed and used to :

  • Enhance security, to avoid wide visibility of all secrets available through environment variables.
    • for example in dumps for third party debug
  • have less environment variables, the right variables at the right places

nixos configuration

as simple as :

programs.direnv.enable = true;
programs.direnv.silent = false;

usage

.envrc files to be added in the directory at the right places

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment