Add separate platform profile parameter
This commit is contained in:
parent
3c9d04a292
commit
0b8aaf3818
3 changed files with 7 additions and 4 deletions
|
@ -39,7 +39,8 @@ lib.makeOverridable ({
|
||||||
],
|
],
|
||||||
platformFirmware ? [ ],
|
platformFirmware ? [ ],
|
||||||
extraFirmware ? [ ],
|
extraFirmware ? [ ],
|
||||||
profiles ? { },
|
platformProfiles ? { },
|
||||||
|
extraProfiles ? { },
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -61,7 +62,9 @@ let
|
||||||
} + "/lib/firmware";
|
} + "/lib/firmware";
|
||||||
|
|
||||||
config = let
|
config = let
|
||||||
profileConfigs = builtins.readDir ./profile
|
profileConfigs = let
|
||||||
|
profiles = platformProfiles // extraProfiles;
|
||||||
|
in builtins.readDir ./profile
|
||||||
|> lib.filterAttrs (name: type: type == "regular")
|
|> lib.filterAttrs (name: type: type == "regular")
|
||||||
|> builtins.attrNames
|
|> builtins.attrNames
|
||||||
|> map (lib.removeSuffix ".nix")
|
|> map (lib.removeSuffix ".nix")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
instSetArch = "znver2";
|
instSetArch = "znver2";
|
||||||
profiles = {
|
platformProfiles = {
|
||||||
physical = true;
|
physical = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
instSetArch = "alderlake";
|
instSetArch = "alderlake";
|
||||||
profiles = {
|
platformProfiles = {
|
||||||
physical = true;
|
physical = true;
|
||||||
portable = true;
|
portable = true;
|
||||||
wireless = true;
|
wireless = true;
|
||||||
|
|
Loading…
Reference in a new issue