mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 22:06:00 +03:00
f76096bdf9
svn path=/nixos/branches/fix-style/; revision=14405
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
|
|
'';
|
|
}];
|
|
};
|
|
}
|