nixpkgs/modules/system/upstart-events/maintenance-shell.nix

23 lines
381 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
###### implementation
{
jobs.maintenance_shell =
{ name = "maintenance-shell";
startOn = [ "maintenance" "stalled" ];
task = true;
script =
''
exec < /dev/tty1 > /dev/tty1 2>&1
echo \
echo "<<< MAINTENANCE SHELL >>>"
echo ""
exec ${pkgs.bash}/bin/sh
'';
};
}