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