Add separate platform profile parameter

This commit is contained in:
Mikael 2024-11-13 17:20:50 +01:00
parent 3c9d04a292
commit 0b8aaf3818
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0
3 changed files with 7 additions and 4 deletions

View file

@ -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")

View file

@ -1,6 +1,6 @@
{
instSetArch = "znver2";
profiles = {
platformProfiles = {
physical = true;
};

View file

@ -1,6 +1,6 @@
{
instSetArch = "alderlake";
profiles = {
platformProfiles = {
physical = true;
portable = true;
wireless = true;