about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2023-01-30 16:52:43 +0100
committerSandro Jäckel <sandro.jaeckel@sap.com>2023-01-30 16:52:43 +0100
commitd9f07dcee585db581688a72d3bcbea2b15794836 (patch)
treeb704b073b75af88de2c204f8cf2893473a4f5cf9
parent0125b49eeb938a98a59b72e5a2d40999858a6727 (diff)
nixos/envfs: use configured environment.usrbinenv and environment.binsh
Taken from upstream
https://github.com/Mic92/envfs/commit/d91aeefccb4485646be9415c9e5d1d3599eb5199
-rw-r--r--nixos/modules/tasks/filesystems/envfs.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/tasks/filesystems/envfs.nix b/nixos/modules/tasks/filesystems/envfs.nix
index 450b805f0f580..df4ce12407bd9 100644
--- a/nixos/modules/tasks/filesystems/envfs.nix
+++ b/nixos/modules/tasks/filesystems/envfs.nix
@@ -9,8 +9,8 @@ let
       options = [
         "fallback-path=${pkgs.runCommand "fallback-path" {} ''
           mkdir -p $out
-          ln -s ${pkgs.coreutils}/bin/env $out/env
-          ln -s ${config.system.build.binsh}/bin/sh $out/sh
+          ln -s ${config.environment.usrbinenv} $out/env
+          ln -s ${config.environment.binsh} $out/sh
         ''}"
       ];
     };