From 5664e64a015354e8b5e3c0cc4e9e7fac0db5f3dc Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 18 Sep 2018 21:47:14 +0200 Subject: [PATCH] nixos/activation: Switch from bash to sh to avoid reading users bash config (#46851) This fixes #46750. This should also work with non-POSIX shells like in #46042. --- nixos/modules/system/activation/top-level.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 9797ef641e4..254e9266e89 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -115,7 +115,7 @@ let inherit (pkgs) utillinux coreutils; systemd = config.systemd.package; - inherit (pkgs.stdenv) shell; + shell = "${pkgs.bash}/bin/sh"; inherit children; kernelParams = config.boot.kernelParams;