16a9702c4a
svn path=/nixos/trunk/; revision=7313
89 lines
2.0 KiB
Nix
89 lines
2.0 KiB
Nix
{pkgs, nix, splashThemes}:
|
|
|
|
let
|
|
|
|
makeJob = import ../upstart-jobs/make-job.nix {
|
|
inherit (pkgs) runCommand;
|
|
};
|
|
|
|
in
|
|
|
|
import ../upstart-jobs/gather.nix {
|
|
inherit (pkgs) runCommand;
|
|
|
|
jobs = map makeJob [
|
|
# Syslogd.
|
|
(import ../upstart-jobs/syslogd.nix {
|
|
inherit (pkgs) sysklogd;
|
|
})
|
|
|
|
# Hardware scan; loads modules for PCI devices.
|
|
(import ../upstart-jobs/hardware-scan.nix {
|
|
inherit (pkgs) kernel module_init_tools;
|
|
})
|
|
|
|
# Network interfaces.
|
|
(import ../upstart-jobs/network-interfaces.nix {
|
|
inherit (pkgs) nettools kernel module_init_tools;
|
|
})
|
|
|
|
# DHCP client.
|
|
(import ../upstart-jobs/dhclient.nix {
|
|
inherit (pkgs) nettools;
|
|
dhcp = pkgs.dhcpWrapper;
|
|
})
|
|
|
|
# SSH daemon.
|
|
(import ../upstart-jobs/sshd.nix {
|
|
inherit (pkgs) openssh;
|
|
})
|
|
|
|
# Nix daemon - required for multi-user Nix.
|
|
(import ../upstart-jobs/nix-daemon.nix {
|
|
inherit nix;
|
|
})
|
|
|
|
# X server.
|
|
(import ../upstart-jobs/xserver.nix {
|
|
inherit (pkgs) substituteAll;
|
|
inherit (pkgs.xorg) xorgserver xf86inputkeyboard xf86inputmouse xf86videovesa;
|
|
})
|
|
|
|
# Transparent TTY backgrounds.
|
|
(import ../upstart-jobs/tty-backgrounds.nix {
|
|
inherit (pkgs) stdenv splashutils;
|
|
backgrounds = splashThemes.ttyBackgrounds;
|
|
})
|
|
|
|
# Handles the maintenance/stalled event (single-user shell).
|
|
(import ../upstart-jobs/maintenance-shell.nix {
|
|
inherit (pkgs) bash;
|
|
})
|
|
|
|
# Ctrl-alt-delete action.
|
|
(import ../upstart-jobs/ctrl-alt-delete.nix)
|
|
|
|
]
|
|
|
|
# Handles the reboot/halt events.
|
|
++ (map
|
|
(event: makeJob (import ../upstart-jobs/halt.nix {
|
|
inherit (pkgs) bash utillinux;
|
|
inherit event;
|
|
}))
|
|
["reboot" "halt" "system-halt" "power-off"]
|
|
)
|
|
|
|
# The terminals on ttyX.
|
|
++ (map
|
|
(ttyNumber: makeJob (import ../upstart-jobs/mingetty.nix {
|
|
inherit (pkgs) mingetty pam_login;
|
|
inherit ttyNumber;
|
|
}))
|
|
[1 2 3 4 5 6]
|
|
)
|
|
|
|
# For the builtin logd job.
|
|
++ [pkgs.upstart];
|
|
}
|