* Unpack the NixOS/Nixpkgs sources automatically when booting from the
installation CD. svn path=/nixos/trunk/; revision=7847
This commit is contained in:
parent
6291281358
commit
ea41e46e6d
@ -26,9 +26,23 @@ rec {
|
|||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraJobs = [
|
||||||
|
# Unpack the NixOS/Nixpkgs sources to /etc/nixos.
|
||||||
|
{ name = "unpack-sources";
|
||||||
|
job = "
|
||||||
|
start on startup
|
||||||
|
script
|
||||||
|
mkdir -p /etc/nixos/nixos
|
||||||
|
tar xjf /nixos.tar.bz2 -C /etc/nixos/nixos
|
||||||
|
tar xjf /nixpkgs.tar.bz2 -C /etc/nixos
|
||||||
|
mv /etc/nixos/nixpkgs-* /etc/nixos/nixpkgs
|
||||||
|
ln -sfn ../nixpkgs/pkgs /etc/nixos/nixos/pkgs
|
||||||
|
end script
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
# Allow the user to do something useful on tty8 while waiting
|
# Allow the user to do something useful on tty8 while waiting
|
||||||
# for the installation to finish.
|
# for the installation to finish.
|
||||||
extraJobs = [
|
|
||||||
{ name = "rogue";
|
{ name = "rogue";
|
||||||
job = "
|
job = "
|
||||||
start on udev
|
start on udev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user