mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
* 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;
|
||||
};
|
||||
|
||||
# Allow the user to do something useful on tty8 while waiting
|
||||
# for the installation to finish.
|
||||
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
|
||||
# for the installation to finish.
|
||||
{ name = "rogue";
|
||||
job = "
|
||||
start on udev
|
||||
|
Loading…
Reference in New Issue
Block a user