Added extraInitrdKernelModules option to CD

svn path=/nixos/trunk/; revision=10182
This commit is contained in:
Michael Raskin 2008-01-16 21:56:31 +00:00
parent 563a6240a3
commit 7749d93524
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ let
includeBuildDeps = arg "includeBuildDeps" false;
kernel = arg "kernel" (pkgs : pkgs.kernel);
addUsers = arg "addUsers" [];
extraInitrdKernelModules = arg "extraInitrdKernelModules" [];
/* Should return list of {configuration, suffix} attrsets.
{configuration=configuration; suffix=""} is always prepended.
@ -107,6 +108,9 @@ rec {
extraTTYs = [] ++ (lib.optional manualEnabled 7) ++
(lib.optional rogueEnabled 8);
inherit kernel;
initrd = {
extraKernelModules = extraInitrdKernelModules;
};
};
services = {
@ -237,6 +241,7 @@ rec {
pkgs.subversion # for nixos-checkout
pkgs.w3m # needed for the manual anyway
] ++ (packages pkgs);
checkConfigurationOptions = true;
};
users = {

View File

@ -47,6 +47,8 @@ start script
${samba}/sbin/smbd -D -s ${smbConfig} &
${samba}/sbin/winbindd -B -s ${smbConfig} &
ln -fs ${smbConfig} /var/samba/config
end script
respawn ${samba}/sbin/nmbd -D -s ${smbConfig} &; ${samba}/sbin/smbd -D -s ${smbConfig} &; ${samba}/sbin/winbindd -B &