892d12bccf
* system.nssModules * system.modulesTree * system.sbin.modprobe * system.sbin.mount * nix.envVars - Remove Arguments that can be accessed either by "config" or "pkgs". - Use the new scheme for upstart-jobs/default.nix. This is now a configuration file which is imported by system/options.nix. - Jobs can now include upstart-job/default.nix: * upstrat-jobs/cron.nix * upstart-jobs/dhclient.nix => No Nixos file refers to upstart-jobs/default.nix except if one of its options is require to define an extra job. (e.g.: cron, dhclient) svn path=/nixos/branches/fix-style/; revision=13327
47 lines
922 B
Nix
47 lines
922 B
Nix
let
|
|
|
|
fromEnv = name : default :
|
|
let env = builtins.getEnv name; in
|
|
if env == "" then default else env;
|
|
configuration = import (fromEnv "NIXOS_CONFIG" /etc/nixos/configuration.nix);
|
|
nixpkgsPath = fromEnv "NIXPKGS" /etc/nixos/nixpkgs;
|
|
|
|
system = import system/system.nix { inherit configuration nixpkgsPath; };
|
|
|
|
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
|
|
|
|
tests = system.config.tests;
|
|
}
|