nixos/modules/home/shell/direnv/default.nix

18 lines
297 B
Nix
Raw Normal View History

2024-05-25 00:37:37 +02:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.cli.direnv;
in
{
options.modules.cli.direnv = {
enable = mkEnableOption ''
Enable direnv with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.direnv = {
enable = true;
};
};
}