use login shell for reexec in nixos-edit init

This commit is contained in:
Daniella / Tove 2024-10-19 03:20:14 +02:00
parent 315c4e3d05
commit 0f2dd8a3c1

View file

@ -15,7 +15,7 @@ pkgs.writeShellScriptBin "nixos-edit" ''
echo please make sure xorg is running
echo -n enter when ready
read
exec sudo -u tudbut nixos-edit init || exit 1
exec sudo -iu tudbut nixos-edit init || exit 1
fi
if [ "$DISPLAY" = "" ] ; then
export DISPLAY=:0