about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/nix/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/nix/default.nix b/third_party/nix/default.nix
index fc3ed792e25f..5792c3034029 100644
--- a/third_party/nix/default.nix
+++ b/third_party/nix/default.nix
@@ -146,6 +146,12 @@ in lib.fix (self: pkgs.llvmPackages.libcxxStdenv.mkDerivation {
     substituteAll \
       ${src}/misc/systemd/nix-daemon.socket.in \
       $out/lib/systemd/system/nix-daemon.socket
+
+    mkdir -p $out/etc/profile.d
+    substituteAll \
+      ${src}/scripts/nix-profile.sh.in $out/etc/profile.d/nix.sh
+    substituteAll \
+      ${src}/scripts/nix-profile-daemon.sh.in $out/etc/profile.d/nix-daemon.sh
   '';
 
   # TODO(tazjin): integration test setup?