~ruther/nixos-config

ref: 8c958d11ebb6459f08967f148354cc502a2f3a35 nixos-config/modules/shell/direnv.nix -rw-r--r-- 318 bytes
8c958d11 — Frantisek Bohacek feat(qtile): add monitor hotplugging support and minor changes 1 year, 28 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Direnv
#
# create a shell.nix
# create a .envrc and add use nix shell.nix
# direnv allow
# add direnv package to emacs
# add 'eval "$(direnv hook zsh)"' to .zshrc (and same for bash)
#

{ config, lib, pkgs, ... }:

{
  programs = {
    direnv = {
      enable = true;
      nix-direnv.enable = true;
    };
  };
}
Do not follow this link