mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
cfed953b5f
default since it doesn't seem to have the legal issues of the Intel 2200 firmware.) * Firmware loader: don't write in /tmp. Also a hack to quickly test new firmwares. * Revert r10105 since the build fails if configuration.nix is a symlink. Anyway copying configuration.nix does not necessarily make sense since it can import other expressions, which would also have to be copied. Perhaps a better approach would be to write a serialisation of the config to a file (maybe with builtins.toXML). svn path=/nixos/trunk/; revision=10127
43 lines
962 B
Nix
43 lines
962 B
Nix
let
|
|
|
|
configFileName =
|
|
let env = builtins.getEnv "NIXOS_CONFIG"; in
|
|
if env == "" then /etc/nixos/configuration.nix else env;
|
|
|
|
system = import system/system.nix {configuration = import configFileName;};
|
|
|
|
in
|
|
|
|
{ inherit (system)
|
|
activateConfiguration
|
|
bootStage1
|
|
bootStage2
|
|
etc
|
|
extraUtils
|
|
grubMenuBuilder
|
|
initialRamdisk
|
|
kernel
|
|
nix
|
|
nixosCheckout
|
|
nixosInstall
|
|
nixosRebuild
|
|
system
|
|
systemPath
|
|
config
|
|
;
|
|
|
|
nixFallback = system.nix;
|
|
|
|
manifests = system.config.installer.manifests; # exported here because nixos-rebuild uses it
|
|
|
|
upstartJobsCombined = system.upstartJobs;
|
|
|
|
# Make it easier to build individual Upstart jobs (e.g., "nix-build
|
|
# /etc/nixos/nixos -A upstartJobs.xserver").
|
|
upstartJobs = { recurseForDerivations = true; } //
|
|
builtins.listToAttrs (map (job:
|
|
{ name = if job ? jobName then job.jobName else job.name; value = job; }
|
|
) system.upstartJobs.jobs);
|
|
|
|
}
|