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 ? [ ],
|
||||
extraFirmware ? [ ],
|
||||
profiles ? { },
|
||||
platformProfiles ? { },
|
||||
extraProfiles ? { },
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -61,7 +62,9 @@ let
|
|||
} + "/lib/firmware";
|
||||
|
||||
config = let
|
||||
profileConfigs = builtins.readDir ./profile
|
||||
profileConfigs = let
|
||||
profiles = platformProfiles // extraProfiles;
|
||||
in builtins.readDir ./profile
|
||||
|> lib.filterAttrs (name: type: type == "regular")
|
||||
|> builtins.attrNames
|
||||
|> map (lib.removeSuffix ".nix")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
instSetArch = "znver2";
|
||||
profiles = {
|
||||
platformProfiles = {
|
||||
physical = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
instSetArch = "alderlake";
|
||||
profiles = {
|
||||
platformProfiles = {
|
||||
physical = true;
|
||||
portable = true;
|
||||
wireless = true;
|
||||
|
|
Loading…
Reference in a new issue