nix-config/home/direnv.nix
Bruno BELANYI ea7b064546
All checks were successful
continuous-integration/drone/push Build is passing
home: direnv: update to new option name
And enable the flakes option.

I don't actually use this on my own projects, but it could be useful for
other projects that I contribute to.
2021-06-30 20:08:07 +02:00

20 lines
363 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;
# And `use_flake`
enableFlakes = true;
};
};
}