nixos/nix-direnv: respect configured nix package

Rebuilds should be reasonably fast since it's a shell script
and we don't end up with different versions of nix in the store.
This commit is contained in:
Jörg Thalheim
2023-12-21 09:08:42 +01:00
parent 9ee63abe2c
commit fd32059984
+8 -1
View File
@@ -49,7 +49,14 @@ in {
default = true;
};
package = lib.mkPackageOption pkgs "nix-direnv" {};
package = lib.mkOption {
default = pkgs.nix-direnv.override { nix = config.nix.package; };
defaultText = "pkgs.nix-direnv";
type = lib.types.package;
description = lib.mdDoc ''
The nix-direnv package to use
'';
};
};
};