feat(nvim): add enable option

This commit is contained in:
2026-05-22 10:20:06 +02:00
parent f2ffedfb76
commit 0ecfe7d86d
4 changed files with 21 additions and 5 deletions

View File

@@ -59,6 +59,7 @@
shell.bash.aliases.lang-js = true; shell.bash.aliases.lang-js = true;
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;
devenv.enable = true; devenv.enable = true;
nvim.enable = true;
pandoc.enable = true; pandoc.enable = true;
photography.enable = true; photography.enable = true;
torrenting.enable = true; torrenting.enable = true;

View File

@@ -56,6 +56,7 @@
shell.bash.addBinToPath = true; shell.bash.addBinToPath = true;
my.yubikey.enable = true; my.yubikey.enable = true;
devenv.enable = true; devenv.enable = true;
nvim.enable = true;
nfc.enable = true; nfc.enable = true;
pandoc.enable = true; pandoc.enable = true;

View File

@@ -65,6 +65,7 @@
browser.primary = "firefox"; browser.primary = "firefox";
devenv.enable = true; devenv.enable = true;
nvim.enable = true;
my.dconf.enable = true; my.dconf.enable = true;
pandoc.enable = true; pandoc.enable = true;
browser.secondary = "chromium"; browser.secondary = "chromium";

View File

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