nixpkgs/default.nix
Eelco Dolstra 5dc694d39a * Fixed references to values moved to boot-stage-1.nix.
svn path=/nixos/trunk/; revision=12582
2008-08-11 11:37:56 +00:00

53 lines
1.1 KiB
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
bootStage2
etc
grubMenuBuilder
kernel
modulesTree
nix
system
systemPath
config
;
inherit (system.nixosTools)
nixosCheckout
nixosHardwareScan
nixosInstall
nixosRebuild
nixosGenSeccureKeys
;
inherit (system.initialRamdiskStuff)
bootStage1
extraUtils
initialRamdisk
modulesClosure
;
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);
}