style(nix): flatten attrsets

This commit is contained in:
Léana 江 2024-02-02 07:41:01 +01:00 committed by Léana 江
parent b08f2ad622
commit 307cedac44
5 changed files with 36 additions and 42 deletions

View file

@ -3,7 +3,6 @@
programs.fish = let
inherit (builtins) readFile foldl' map listToAttrs concatMap;
inherit (pkgs) callPackage;
readConfig = n: readFile ./conf.d/${n}.fish;
readConfigs = ns:
foldl' (l: r: l + "\n" + r) ""