nix-config/home/direnv/default.nix
Bruno BELANYI 555c474b88
All checks were successful
continuous-integration/drone/push Build is passing
flake: bump inputs
And make my configuration build after the removed option from
`programs.direnv` in home-manager.
2021-11-30 15:41:14 +01:00

18 lines
312 B
Nix

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