e91d882a94
style of declaring Upstart jobs. While at it, converted them to the current NixOS module style and improved some option descriptions. Hopefully I didn't break too much :-) svn path=/nixos/trunk/; revision=17761
19 lines
261 B
Nix
19 lines
261 B
Nix
{ config, pkgs, ... }:
|
|
|
|
###### implementation
|
|
|
|
{
|
|
jobAttrs.ctrl_alt_delete =
|
|
{ name = "ctrl-alt-delete";
|
|
|
|
startOn = "ctrlaltdel";
|
|
|
|
task = true;
|
|
|
|
script =
|
|
''
|
|
shutdown -r now 'Ctrl-Alt-Delete pressed'
|
|
'';
|
|
};
|
|
}
|