firefox: simplify derivation and inherit declarations (#1545)

Link: https://github.com/nix-community/stylix/pull/1545

Reviewed-by: awwpotato <awwpotato@voidq.com>
This commit is contained in:
NAHO 2025-06-26 17:06:03 +02:00 committed by GitHub
commit 87ec086490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,29 +5,16 @@
}:
{
imports =
map
lib.mapAttrsToList
(
{ name, humanName }:
name: humanName:
lib.modules.importApply ./each-config.nix {
inherit
mkTarget
name
humanName
;
inherit mkTarget name humanName;
}
)
[
{
name = "firefox";
humanName = "Firefox";
}
{
name = "librewolf";
humanName = "LibreWolf";
}
{
name = "floorp";
humanName = "Floorp";
}
];
{
"firefox" = "Firefox";
"librewolf" = "LibreWolf";
"floorp" = "Floorp";
};
}