Skip to content

Instantly share code, notes, and snippets.

@dacr
Created November 17, 2024 18:09
Show Gist options
  • Save dacr/477d2e4310e39ff68e2f16d9da76d0c3 to your computer and use it in GitHub Desktop.
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/7b2aa8cdeab418b7c469d8d88e7ded22e0873c9b

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