1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

nix-direnv: Override the nix-direnv package with nix from config.nix.package

This is to match the behaviour with upstream nixpkgs:
6a9d18e057/nixos/modules/programs/direnv.nix (L64)
This commit is contained in:
shivaraj-bh 2024-08-27 01:16:05 +05:30
parent c2cd2a52e0
commit f0f765e96e

View file

@ -92,7 +92,17 @@ in {
[nix-direnv](https://github.com/nix-community/nix-direnv), [nix-direnv](https://github.com/nix-community/nix-direnv),
a fast, persistent use_nix implementation for direnv''; a fast, persistent use_nix implementation for direnv'';
package = mkPackageOption pkgs "nix-direnv" { }; package = mkOption {
default = pkgs.nix-direnv.override {
nix =
if config.nix.package == null then pkgs.nix else config.nix.package;
};
defaultText = "pkgs.nix-direnv";
type = types.package;
description = ''
The nix-direnv package to use
'';
};
}; };
silent = mkEnableOption "silent mode, that is, disabling direnv logging"; silent = mkEnableOption "silent mode, that is, disabling direnv logging";