add function

This commit is contained in:
Daylin Morgan 2025-01-06 15:14:23 -06:00
parent 248b6269aa
commit 728f7ef279
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 16 additions and 1 deletions

View file

@ -1,10 +1,17 @@
{
lib,
enabled,
enableAttrs,
listify,
config,
...
}:
let
inherit (lib.strings) hasPrefix splitString;
inherit (builtins) readFile filter;
readLanguageSettings = f: f |> readFile |> splitString "\n" |> filter (line: !(hasPrefix "#" line));
in
{
oizys =
@ -12,7 +19,8 @@
nix-ld = enabled // {
overkill = enabled;
};
languages = "misc|nim|node|nushell|python|tex|typst" |> listify;
languages = readLanguageSettings ./settings/languages;
# languages = "misc|nim|node|nushell|python|tex|typst" |> listify;
}
// (
''

View file

@ -0,0 +1,7 @@
misc
nim
node
nushell
python
tex
typst