33 lines
616 B
Nix
33 lines
616 B
Nix
{
|
|
marleylib,
|
|
config,
|
|
osConfig,
|
|
lib,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (marleylib.module) mkEnableOption';
|
|
|
|
cfg = config.marleyos.programs.neovim;
|
|
osCfg = osConfig.marleyos.programs.neovim;
|
|
in {
|
|
options.marleyos.programs.neovim.enable =
|
|
mkEnableOption' "neovim" osCfg.enable;
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
nixpkgs.overlays = [
|
|
(import ../../../overlays/marleyvim.nix {inherit inputs;})
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
nvim
|
|
];
|
|
|
|
home.sessionVariables = rec {
|
|
EDITOR = "nvim";
|
|
VISUAL = "${EDITOR}";
|
|
SUDO_EDITOR = "${EDITOR}";
|
|
};
|
|
};
|
|
}
|