filetypes: use genAttrs
parent
2944546d0a
commit
aa61806fe1
|
@ -12,10 +12,8 @@ in {
|
|||
|
||||
mimeAppsFor =
|
||||
value: list:
|
||||
lib.right
|
||||
builtins.listToAttrs
|
||||
(map (name: { inherit name value; }))
|
||||
list;
|
||||
lib.genAttrs list (name: value);
|
||||
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in New Issue