From 728f7ef27926c003b3885c547af17704d44e52e1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 6 Jan 2025 15:14:23 -0600 Subject: [PATCH] add function --- hosts/othalan/default.nix | 10 +++++++++- hosts/othalan/settings/languages | 7 +++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 hosts/othalan/settings/languages diff --git a/hosts/othalan/default.nix b/hosts/othalan/default.nix index a856010..248432c 100644 --- a/hosts/othalan/default.nix +++ b/hosts/othalan/default.nix @@ -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; } // ( '' diff --git a/hosts/othalan/settings/languages b/hosts/othalan/settings/languages new file mode 100644 index 0000000..b490acb --- /dev/null +++ b/hosts/othalan/settings/languages @@ -0,0 +1,7 @@ +misc +nim +node +nushell +python +tex +typst