mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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:
parent
c2cd2a52e0
commit
f0f765e96e
1 changed files with 11 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue