2025-08-02 00:09:06 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
2025-05-03 23:42:03 -07:00
|
|
|
|
2025-08-02 00:09:06 -07:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
options.nvim = {
|
|
|
|
|
enable = mkEnableOption "Enable custom neovim configuration";
|
|
|
|
|
|
|
|
|
|
package = mkOption {
|
|
|
|
|
type = types.package;
|
|
|
|
|
default = pkgs.neovim;
|
|
|
|
|
description = "The neovim package to use";
|
2025-05-03 23:42:03 -07:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2025-08-02 00:09:06 -07:00
|
|
|
config = mkIf config.nvim.enable {
|
|
|
|
|
home.packages = [
|
|
|
|
|
config.nvim.package
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
|
shellAliases = {
|
|
|
|
|
n = "nvim";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home.file.".config/nvim" = {
|
|
|
|
|
recursive = true;
|
|
|
|
|
source = ./explicit-configs/nvim;
|
|
|
|
|
};
|
2025-05-03 23:42:03 -07:00
|
|
|
};
|
|
|
|
|
}
|