dotfiles/modules/programs/direnv.nix

21 lines
296 B
Nix

{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.direnv;
in
{
options.my.programs.direnv.enable = mkEnableOption "direnv";
config = mkIf cfg.enable {
home-manager.users.moritz.programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
};
}