Skip to content

Instantly share code, notes, and snippets.

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 superherointj/41fde0dfa4233f7eb98df4a6f5a22f1f to your computer and use it in GitHub Desktop.
Save superherointj/41fde0dfa4233f7eb98df4a6f5a22f1f to your computer and use it in GitHub Desktop.
Direnv flakes
programs.direnv = {
enable = true;
nix-direnv = {
enable = true;
enableFlakes = true;
};
};
home.file.".config/direnv/lib/use_flake.sh".text = ''
use_flake() {
watch_file flake.nix
watch_file flake.lock
eval "$(nix print-dev-env --profile "$(direnv_layout_dir)/flake-profile")"
}
'';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment