Make nixos-hardware-scan adding a profile to the generated configuration
file. svn path=/nixos/trunk/; revision=23918
This commit is contained in:
parent
5fb80fcc4b
commit
c18fe31160
@ -231,6 +231,7 @@ print <<EOF ;
|
|||||||
|
|
||||||
{
|
{
|
||||||
require = [
|
require = [
|
||||||
|
"\${modulesPath}/profiles/@profile@.nix"
|
||||||
"\${modulesPath}/installer/scan/not-detected.nix"
|
"\${modulesPath}/installer/scan/not-detected.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ let
|
|||||||
name = "nixos-hardware-scan";
|
name = "nixos-hardware-scan";
|
||||||
src = ./nixos-hardware-scan.pl;
|
src = ./nixos-hardware-scan.pl;
|
||||||
inherit (pkgs) perl;
|
inherit (pkgs) perl;
|
||||||
|
profile = config.installer.installProfile;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosOption = makeProg {
|
nixosOption = makeProg {
|
||||||
@ -112,6 +113,14 @@ in
|
|||||||
<command>nixos-rebuild</command> to speed up builds.
|
<command>nixos-rebuild</command> to speed up builds.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
installer.installProfile = pkgs.lib.mkOption {
|
||||||
|
default = "base";
|
||||||
|
example = "graphical";
|
||||||
|
description = ''
|
||||||
|
Name of the profile used when generating the hardware-scan.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user