From 7782c20ababfa683e810fcbbb201208616699a6b Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 12 Mar 2025 04:35:08 +0300 Subject: [PATCH] modules/wrapper: initial healtcheck impl --- modules/modules.nix | 1 + modules/wrapper/healthcheck/default.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 modules/wrapper/healthcheck/default.nix diff --git a/modules/modules.nix b/modules/modules.nix index c7e198dd..707b6658 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -53,6 +53,7 @@ wrapper = map (p: ./wrapper + "/${p}") [ "build" "environment" + "healthcheck" "rc" "warnings" "lazy" diff --git a/modules/wrapper/healthcheck/default.nix b/modules/wrapper/healthcheck/default.nix new file mode 100644 index 00000000..3d8c4201 --- /dev/null +++ b/modules/wrapper/healthcheck/default.nix @@ -0,0 +1,18 @@ +{ + pkgs, + lib, + ... +}: let + inherit (lib.options) mkEnableOption; + inherit (lib.strings) fileContents; +in { + options.vim.healthcheck = { + enable = mkEnableOption "nvf healthchecks"; + }; + + config = { + vim.additionalRuntimePaths = [ + (pkgs.writeTextDir "autoload/health/nvf.lua" (fileContents ./autoload.lua)).outPath + ]; + }; +}