Bruno BELANYI
555c474b88
All checks were successful
continuous-integration/drone/push Build is passing
And make my configuration build after the removed option from `programs.direnv` in home-manager.
18 lines
312 B
Nix
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;
|
|
};
|
|
};
|
|
}
|