2008-11-22 17:29:20 -08:00
|
|
|
{pkgs, config}:
|
2008-02-08 07:59:15 -08:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2008-11-22 17:29:20 -08:00
|
|
|
nix = config.environment.nix;
|
|
|
|
|
2008-02-08 07:59:15 -08:00
|
|
|
makeProg = args: pkgs.substituteAll (args // {
|
|
|
|
dir = "bin";
|
|
|
|
isExecutable = true;
|
|
|
|
});
|
|
|
|
|
2008-08-26 12:45:06 -07:00
|
|
|
|
2008-08-27 02:37:44 -07:00
|
|
|
nixosCheckout = (import ./nixos-checkout.nix) {
|
2008-08-26 12:45:06 -07:00
|
|
|
inherit pkgs config makeProg;
|
|
|
|
};
|
|
|
|
|
2008-08-16 18:11:57 -07:00
|
|
|
|
2008-02-08 07:59:15 -08:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nixosInstall = makeProg {
|
|
|
|
name = "nixos-install";
|
|
|
|
src = ./nixos-install.sh;
|
|
|
|
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
inherit nix;
|
|
|
|
nixpkgsURL = config.installer.nixpkgsURL;
|
|
|
|
|
2008-11-22 17:29:13 -08:00
|
|
|
pathsFromGraph = "${pkgs.path}/build-support/kernel/paths-from-graph.pl";
|
2008-02-08 07:59:15 -08:00
|
|
|
|
|
|
|
nixClosure = pkgs.runCommand "closure"
|
|
|
|
{exportReferencesGraph = ["refs" nix];}
|
|
|
|
"cp refs $out";
|
|
|
|
};
|
|
|
|
|
2008-08-26 12:45:06 -07:00
|
|
|
nixosRebuild = let inherit (nixosCheckout) repos defaultRepo;
|
|
|
|
in makeProg {
|
2008-08-16 18:11:57 -07:00
|
|
|
defaultNIXOS = (defaultRepo repos.nixos ).target;
|
|
|
|
defaultNIXPKGS = (defaultRepo repos.nixpkgs).target;
|
2008-02-08 07:59:15 -08:00
|
|
|
name = "nixos-rebuild";
|
|
|
|
src = ./nixos-rebuild.sh;
|
|
|
|
};
|
|
|
|
|
2008-03-03 15:31:48 -08:00
|
|
|
nixosGenSeccureKeys = makeProg {
|
|
|
|
name = "nixos-gen-seccure-keys";
|
|
|
|
src = ./nixos-gen-seccure-keys.sh;
|
|
|
|
};
|
|
|
|
|
2008-08-26 12:45:06 -07:00
|
|
|
inherit (nixosCheckout) nixosCheckout;
|
2008-02-08 07:59:15 -08:00
|
|
|
|
|
|
|
nixosHardwareScan = makeProg {
|
|
|
|
name = "nixos-hardware-scan";
|
|
|
|
src = ./nixos-hardware-scan.pl;
|
|
|
|
inherit (pkgs) perl;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|