modules(neovim): create separate module

This commit is contained in:
Michael Thomas 2025-05-17 16:28:38 -04:00
parent 161eee6bb1
commit 5fbbfd7dc6
2 changed files with 19 additions and 0 deletions

18
common/neovim/default.nix Normal file
View File

@ -0,0 +1,18 @@
{
config,
pkgs,
lib,
...
}: let
cfg = config.my.neovim;
in {
options.my.neovim = {
enable = lib.mkEnableOption "neovim";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [nvim-custom];
environment.variables."EDITOR" = "nvim";
};
}

View File

@ -56,6 +56,7 @@
firewallInterface = "enp1s0";
};
my.neovim.enable = true;
my.services.keycloak.enable = true;
my.services.mealie.enable = true;
my.services.nextcloud.enable = true;