home: direnv: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:01:00 +00:00
parent 722e9c117d
commit 130adae9c6

View file

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