marleyos/modules/home/programs/tui/neovim/default.nix
2025-03-01 14:50:12 -08:00

22 lines
377 B
Nix

{
lib,
config,
pkgs,
...
}: let
cfg = config.marleyos.programs.neovim;
in {
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
nvim
];
home.sessionVariables = rec {
EDITOR = "nvim";
VISUAL = "${EDITOR}";
SUDO_EDITOR = "${EDITOR}";
};
};
}