From daadcbdaacc352a2031d53eaf6f8f1eedc263bcb Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 16 Feb 2025 19:41:21 +0300 Subject: [PATCH] nixos/systemd-stage-1: explicitly add pkgs.runtimeShell dependency Because it's no longer pkgs.bash (which is interactive), and can be something else on other platforms anyway. --- nixos/modules/system/boot/systemd/initrd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index 332cfc2fbb13..472c72fb3889 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -538,7 +538,9 @@ in "${cfg.package.util-linux}/bin/umount" "${cfg.package.util-linux}/bin/sulogin" - # required for script services, and some tools like xfs still want the sh symlink + # required for services generated with writeShellScript and friends + pkgs.runtimeShell + # some tools like xfs still want the sh symlink "${pkgs.bash}/bin" # so NSS can look up usernames