diff --git a/pkgsets/emacs/direnv.nix b/pkgsets/emacs/direnv.nix new file mode 100644 index 0000000..fc0ec66 --- /dev/null +++ b/pkgsets/emacs/direnv.nix @@ -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 ]; +}