helm/modules/shell/direnv.nix

18 lines
347 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
2019-08-06 10:56:54 -07:00
2020-03-28 22:48:43 -07:00
with lib;
2019-08-06 10:56:54 -07:00
{
2020-03-28 22:48:43 -07:00
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)"'';
2020-03-28 22:48:43 -07:00
};
2020-01-12 15:17:17 -08:00
2020-03-28 22:48:43 -07:00
services.lorri.enable = true;
2020-01-12 15:17:17 -08:00
};
2019-08-06 10:56:54 -07:00
}