Emacs add direnv mode.
This commit is contained in:
parent
0cb7f9eb7f
commit
2445cc4e9d
1 changed files with 12 additions and 0 deletions
12
pkgsets/emacs/direnv.nix
Normal file
12
pkgsets/emacs/direnv.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
mkIf (elem "emacs::direnv" config.machine.pkgs) {
|
||||
programs.emacs.init.usePackage.direnv = {
|
||||
enable = true;
|
||||
config = ''(direnv-mode)'';
|
||||
};
|
||||
services.lorri.enable = true;
|
||||
environment.systemPackages = with pkgs; [ lorri direnv ];
|
||||
}
|
Loading…
Reference in a new issue