Emacs add direnv mode.

This commit is contained in:
Kevin Baensch 2023-04-15 14:00:08 +02:00
parent 0cb7f9eb7f
commit 2445cc4e9d
Signed by: derped
GPG key ID: C0F1D326C7626543

12
pkgsets/emacs/direnv.nix Normal file
View 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 ];
}