mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
278b15d840
svn path=/nixos/branches/modular-nixos/; revision=15725
25 lines
451 B
Nix
25 lines
451 B
Nix
{pkgs, config, ...}:
|
|
|
|
###### implementation
|
|
|
|
{
|
|
services = {
|
|
extraJobs = [{
|
|
name = "maintenance-shell";
|
|
|
|
job = ''
|
|
start on maintenance
|
|
start on stalled
|
|
|
|
script
|
|
exec < /dev/tty1 > /dev/tty1 2>&1
|
|
echo \"\"
|
|
echo \"<<< MAINTENANCE SHELL >>>\"
|
|
echo \"\"
|
|
exec ${pkgs.bash}/bin/sh
|
|
end script
|
|
'';
|
|
}];
|
|
};
|
|
}
|