···2020 export USER=root
2121 export HOME=/root
2222 export DISPLAY=:0.0
2323+2324 source /etc/profile
2525+2626+ # Don't use a pager when executing backdoor
2727+ # actions. Because we use a tty, commands like systemctl
2828+ # or nix-store get confused into thinking they're running
2929+ # interactively.
3030+ export PAGER=
3131+2432 cd /tmp
2533 exec < /dev/hvc0 > /dev/hvc0
2634 while ! exec 2> /dev/ttyS0; do sleep 0.1; done
···3745 # with EIO). Likewise for hvc0.
3846 systemd.services."serial-getty@ttyS0".enable = false;
3947 systemd.services."serial-getty@hvc0".enable = false;
4040-4141- # Don't use a pager when executing backdoor actions. Because we
4242- # use a tty, commands like systemctl or nix-store get confused
4343- # into thinking they're running interactively.
4444- environment.variables.PAGER = "";
45484649 boot.initrd.preDeviceCommands =
4750 ''