~ruther/nixos-config

ref: fbe1a5eef9112a1ef8a7c3b1d00b96134d90d371 nixos-config/modules/shell/direnv.nix -rw-r--r-- 318 bytes
fbe1a5ee — Rutherther feat: disable gnome and make sure everything works 2 years 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;
    };
  };
}