nix-config/home/direnv.nix

16 lines
302 B
Nix
Raw Normal View History

2021-03-13 01:01:00 +01:00
{ config, lib, ... }:
let
cfg = config.my.home.direnv;
in
{
2021-03-13 01:01:00 +01:00
options.my.home.direnv = with lib.my; {
enable = mkDisableOption "direnv configuration";
};
config.programs.direnv = lib.mkIf cfg.enable {
enable = true;
# A better `use_nix`
enableNixDirenvIntegration = true;
};
}