mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:29:40 +00:00
overlays/iosevka: useless refactor
This commit is contained in:
parent
cc9a1be62f
commit
edf313dfb3
1 changed files with 9 additions and 9 deletions
|
|
@ -29,18 +29,18 @@ let
|
||||||
|
|
||||||
identityOverlay = _: _: { };
|
identityOverlay = _: _: { };
|
||||||
overlays =
|
overlays =
|
||||||
lib.crossLists
|
let
|
||||||
(
|
# Useless complexity just for the fun
|
||||||
spacingCfg: variantCfg:
|
n-airyToList = acc: x: {
|
||||||
lib.composeManyExtensions [
|
value = acc ++ [ x ];
|
||||||
spacingCfg
|
__functor = self: n-airyToList self.value;
|
||||||
variantCfg
|
};
|
||||||
]
|
combinations = lib.crossLists (n-airyToList [ ]) [
|
||||||
)
|
|
||||||
[
|
|
||||||
(import ./spacings.nix)
|
(import ./spacings.nix)
|
||||||
([ identityOverlay ] ++ import ./variants.nix)
|
([ identityOverlay ] ++ import ./variants.nix)
|
||||||
];
|
];
|
||||||
|
in
|
||||||
|
map ({ value, ... }: lib.composeManyExtensions value) combinations;
|
||||||
|
|
||||||
iosevkas = lib.genAttrs' overlays (
|
iosevkas = lib.genAttrs' overlays (
|
||||||
overlay:
|
overlay:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue