Remove deprecated notation in tools.nix.
svn path=/nixos/trunk/; revision=23630
This commit is contained in:
parent
9e04f67b3d
commit
1f69bc4b9d
|
@ -4,35 +4,6 @@
|
||||||
{config, pkgs, ...}:
|
{config, pkgs, ...}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
### interface
|
|
||||||
|
|
||||||
options = {
|
|
||||||
|
|
||||||
installer.nixpkgsURL = pkgs.lib.mkOption {
|
|
||||||
default = "";
|
|
||||||
example = http://nixos.org/releases/nix/nixpkgs-0.11pre7577;
|
|
||||||
description = ''
|
|
||||||
URL of the Nixpkgs distribution to use when building the
|
|
||||||
installation CD.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
installer.manifests = pkgs.lib.mkOption {
|
|
||||||
default = [http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST];
|
|
||||||
example =
|
|
||||||
[ http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST
|
|
||||||
http://nixos.org/releases/nixpkgs/channels/nixpkgs-stable/MANIFEST
|
|
||||||
];
|
|
||||||
description = ''
|
|
||||||
URLs of manifests to be downloaded when you run
|
|
||||||
<command>nixos-rebuild</command> to speed up builds.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
### implementation
|
### implementation
|
||||||
|
|
||||||
makeProg = args: pkgs.substituteAll (args // {
|
makeProg = args: pkgs.substituteAll (args // {
|
||||||
|
@ -119,23 +90,48 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
require = options;
|
options = {
|
||||||
|
|
||||||
|
installer.nixpkgsURL = pkgs.lib.mkOption {
|
||||||
|
default = "";
|
||||||
|
example = http://nixos.org/releases/nix/nixpkgs-0.11pre7577;
|
||||||
|
description = ''
|
||||||
|
URL of the Nixpkgs distribution to use when building the
|
||||||
|
installation CD.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages =
|
installer.manifests = pkgs.lib.mkOption {
|
||||||
[ nixosInstall
|
default = [http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST];
|
||||||
nixosRebuild
|
example =
|
||||||
nixosHardwareScan
|
[ http://nixos.org/releases/nixpkgs/channels/nixpkgs-unstable/MANIFEST
|
||||||
nixosGenSeccureKeys
|
http://nixos.org/releases/nixpkgs/channels/nixpkgs-stable/MANIFEST
|
||||||
nixosOption
|
];
|
||||||
|
description = ''
|
||||||
|
URLs of manifests to be downloaded when you run
|
||||||
|
<command>nixos-rebuild</command> to speed up builds.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
installer2.runInChroot
|
config = {
|
||||||
installer2.nixosPrepareInstall
|
environment.systemPackages =
|
||||||
];
|
[ nixosInstall
|
||||||
|
nixosRebuild
|
||||||
|
nixosHardwareScan
|
||||||
|
nixosGenSeccureKeys
|
||||||
|
nixosOption
|
||||||
|
|
||||||
system.build = {
|
installer2.runInChroot
|
||||||
inherit nixosInstall;
|
installer2.nixosPrepareInstall
|
||||||
|
];
|
||||||
|
|
||||||
# expose scripts
|
system.build = {
|
||||||
inherit (installer2) nixosPrepareInstall runInChroot nixosBootstrap minimalInstallArchive;
|
inherit nixosInstall;
|
||||||
|
|
||||||
|
# expose scripts
|
||||||
|
inherit (installer2) nixosPrepareInstall runInChroot nixosBootstrap minimalInstallArchive;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue