feat(nvim): add enable option
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
shell.bash.aliases.lang-js = true;
|
||||
shell.bash.addBinToPath = true;
|
||||
devenv.enable = true;
|
||||
nvim.enable = true;
|
||||
pandoc.enable = true;
|
||||
photography.enable = true;
|
||||
torrenting.enable = true;
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
shell.bash.addBinToPath = true;
|
||||
my.yubikey.enable = true;
|
||||
devenv.enable = true;
|
||||
nvim.enable = true;
|
||||
nfc.enable = true;
|
||||
pandoc.enable = true;
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
|
||||
browser.primary = "firefox";
|
||||
devenv.enable = true;
|
||||
nvim.enable = true;
|
||||
my.dconf.enable = true;
|
||||
pandoc.enable = true;
|
||||
browser.secondary = "chromium";
|
||||
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user