feat(nvim): add enable option

This commit is contained in:
hektor committed 2026-05-24 15:59:57 +02:00
1 parent f2ffedfb76
commit 0ecfe7d86d
4 files changed
+21 -5

No files matched your search

+18 -5
View File
@@ -1,7 +1,20 @@
{ pkgs, inputs, ... }:
{
home.packages = [
inputs.nvim.packages.${pkgs.stdenv.hostPlatform.system}.nvim
];
config,
lib,
pkgs,
inputs,
...
}:
let
cfg = config.nvim;
in
{
options.nvim.enable = lib.mkEnableOption "nvim";
config = lib.mkIf cfg.enable {
home.packages = [
inputs.nvim.packages.${pkgs.stdenv.hostPlatform.system}.nvim
];
};
}