Bruno BELANYI
07b60f8f52
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;
|
|
};
|
|
};
|
|
}
|