* Moved the expressions for generating Upstart jobs.
svn path=/nixos/branches/modular-nixos/; revision=15748
This commit is contained in:
parent
700a1f8f21
commit
c3fb0387b4
@ -1,5 +1,20 @@
|
|||||||
[ #./hardware/network/intel-3945abg.nix
|
[ #./hardware/network/intel-3945abg.nix
|
||||||
../etc/default.nix
|
../etc/default.nix
|
||||||
|
../system/assertion.nix
|
||||||
|
../system/nixos-environment.nix
|
||||||
|
../system/nixos-installer.nix
|
||||||
|
../system/system-options.nix
|
||||||
|
../upstart-jobs/cron/locate.nix
|
||||||
|
../upstart-jobs/filesystems.nix
|
||||||
|
../upstart-jobs/guest-users.nix
|
||||||
|
../upstart-jobs/kbd.nix
|
||||||
|
../upstart-jobs/ldap
|
||||||
|
../upstart-jobs/lvm.nix
|
||||||
|
../upstart-jobs/network-interfaces.nix
|
||||||
|
../upstart-jobs/pcmcia.nix
|
||||||
|
../upstart-jobs/swap.nix
|
||||||
|
../upstart-jobs/swraid.nix
|
||||||
|
../upstart-jobs/tty-backgrounds.nix
|
||||||
./config/fonts.nix
|
./config/fonts.nix
|
||||||
./config/i18n.nix
|
./config/i18n.nix
|
||||||
./config/system-path.nix
|
./config/system-path.nix
|
||||||
@ -69,20 +84,5 @@
|
|||||||
./system/upstart-events/ctrl-alt-delete.nix
|
./system/upstart-events/ctrl-alt-delete.nix
|
||||||
./system/upstart-events/halt.nix
|
./system/upstart-events/halt.nix
|
||||||
./system/upstart-events/maintenance-shell.nix
|
./system/upstart-events/maintenance-shell.nix
|
||||||
../system/assertion.nix
|
./system/upstart/upstart.nix
|
||||||
../system/nixos-environment.nix
|
|
||||||
../system/nixos-installer.nix
|
|
||||||
../system/system-options.nix
|
|
||||||
../upstart-jobs/cron/locate.nix
|
|
||||||
../upstart-jobs/default.nix
|
|
||||||
../upstart-jobs/filesystems.nix
|
|
||||||
../upstart-jobs/guest-users.nix
|
|
||||||
../upstart-jobs/kbd.nix
|
|
||||||
../upstart-jobs/ldap
|
|
||||||
../upstart-jobs/lvm.nix
|
|
||||||
../upstart-jobs/network-interfaces.nix
|
|
||||||
../upstart-jobs/pcmcia.nix
|
|
||||||
../upstart-jobs/swap.nix
|
|
||||||
../upstart-jobs/swraid.nix
|
|
||||||
../upstart-jobs/tty-backgrounds.nix
|
|
||||||
]
|
]
|
||||||
|
@ -60,7 +60,7 @@ let
|
|||||||
modprobe = config.system.sbin.modprobe;
|
modprobe = config.system.sbin.modprobe;
|
||||||
mount = config.system.sbin.mount;
|
mount = config.system.sbin.mount;
|
||||||
|
|
||||||
makeJob = import ../upstart-jobs/make-job.nix {
|
makeJob = import ./make-job.nix {
|
||||||
inherit (pkgs) runCommand;
|
inherit (pkgs) runCommand;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -73,18 +73,29 @@ let
|
|||||||
# User-defined events.
|
# User-defined events.
|
||||||
++ (map makeJob (config.services.extraJobs));
|
++ (map makeJob (config.services.extraJobs));
|
||||||
|
|
||||||
|
|
||||||
command = import ../upstart-jobs/gather.nix {
|
# Create an etc/event.d directory containing symlinks to the
|
||||||
inherit (pkgs) runCommand;
|
# specified list of Upstart job files.
|
||||||
inherit jobs;
|
command = pkgs.runCommand "upstart-jobs" {inherit jobs;}
|
||||||
};
|
''
|
||||||
|
ensureDir $out/etc/event.d
|
||||||
|
for i in $jobs; do
|
||||||
|
if ln -s $i . ; then
|
||||||
|
if test -d $i; then
|
||||||
|
ln -s $i/etc/event.d/* $out/etc/event.d/
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo Duplicate entry: $i;
|
||||||
|
fi;
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
require = [
|
require = [
|
||||||
options
|
options
|
||||||
./lib/default.nix
|
./tools.nix # !!! doesn't seem to be used anywhere
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
@ -1,17 +0,0 @@
|
|||||||
# Create an etc/event.d directory containing symlinks to the
|
|
||||||
# specified list of Upstart job files.
|
|
||||||
{runCommand, jobs}:
|
|
||||||
|
|
||||||
runCommand "upstart-jobs" {inherit jobs;}
|
|
||||||
"
|
|
||||||
ensureDir $out/etc/event.d
|
|
||||||
for i in $jobs; do
|
|
||||||
if ln -s $i . ; then
|
|
||||||
if test -d $i; then
|
|
||||||
ln -s $i/etc/event.d/* $out/etc/event.d/
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo Duplicate entry: $i;
|
|
||||||
fi;
|
|
||||||
done
|
|
||||||
"
|
|
Loading…
x
Reference in New Issue
Block a user