aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name/di/direnv/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-18 00:03:26 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-08-18 00:03:26 +0200
commit6aed3759f72cd65d76fecc1efbaf26fb0e8daa6e (patch)
tree5666c8a8ec1c3f5161927e278f4f97b0a4478698 /modules/by-name/di/direnv/module.nix
parentmodules/boot/tails-iso: Disable `config` kernel parameter (diff)
downloadnixos-config-6aed3759f72cd65d76fecc1efbaf26fb0e8daa6e.zip
modules/direnv: Don't depend on git, for the cache path creation
The nix fetched source, is a tarball, and as such has no git information, that we could extract.
Diffstat (limited to 'modules/by-name/di/direnv/module.nix')
-rw-r--r--modules/by-name/di/direnv/module.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/by-name/di/direnv/module.nix b/modules/by-name/di/direnv/module.nix
index 743375af..642ac040 100644
--- a/modules/by-name/di/direnv/module.nix
+++ b/modules/by-name/di/direnv/module.nix
@@ -22,7 +22,9 @@
cat "${./pre-cache.sh}" > $out
substituteInPlace $out \
- --replace-fail "%DEVSHELLS_REPO%" "${devshells}"
+ --replace-fail "%DEVSHELLS_REPO%" "${devshells}" \
+ --replace-fail "%DEVSHELLS_REPO_REF%" "${devshells.sourceInfo.rev}"
+
'';
in {
options.soispha.programs.direnv = {