helm/modules/shell/direnv.nix
Henrik Lissner c6c6e18036
Uncache direnv init
It's not expensive enough to cache.
2020-04-06 01:54:35 -04:00

18 lines
347 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.shell.direnv = {
enable = mkOption { type = types.bool; default = false; };
};
config = mkIf config.modules.shell.direnv.enable {
my = {
packages = [ pkgs.direnv ];
zsh.rc = ''eval "$(direnv hook zsh)"'';
};
services.lorri.enable = true;
};
}