18 lines
342 B
Nix
18 lines
342 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 = "_cache direnv hook zsh";
|
|
};
|
|
|
|
services.lorri.enable = true;
|
|
};
|
|
}
|