mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 07:07:32 -06:00
add function
This commit is contained in:
parent
248b6269aa
commit
728f7ef279
2 changed files with 16 additions and 1 deletions
|
@ -1,10 +1,17 @@
|
||||||
{
|
{
|
||||||
|
lib,
|
||||||
enabled,
|
enabled,
|
||||||
enableAttrs,
|
enableAttrs,
|
||||||
listify,
|
listify,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib.strings) hasPrefix splitString;
|
||||||
|
inherit (builtins) readFile filter;
|
||||||
|
readLanguageSettings = f: f |> readFile |> splitString "\n" |> filter (line: !(hasPrefix "#" line));
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
oizys =
|
oizys =
|
||||||
|
@ -12,7 +19,8 @@
|
||||||
nix-ld = enabled // {
|
nix-ld = enabled // {
|
||||||
overkill = 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;
|
||||||
}
|
}
|
||||||
// (
|
// (
|
||||||
''
|
''
|
||||||
|
|
7
hosts/othalan/settings/languages
Normal file
7
hosts/othalan/settings/languages
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
misc
|
||||||
|
nim
|
||||||
|
node
|
||||||
|
nushell
|
||||||
|
python
|
||||||
|
tex
|
||||||
|
typst
|
Loading…
Reference in a new issue