filetypes: use genAttrs
This commit is contained in:
parent
2944546d0a
commit
aa61806fe1
1 changed files with 2 additions and 4 deletions
|
@ -12,10 +12,8 @@ in {
|
||||||
|
|
||||||
mimeAppsFor =
|
mimeAppsFor =
|
||||||
value: list:
|
value: list:
|
||||||
lib.right
|
lib.genAttrs list (name: value);
|
||||||
builtins.listToAttrs
|
|
||||||
(map (name: { inherit name value; }))
|
|
||||||
list;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue