Allow overriding neovim version, add new claude code, add opencode.
Signed-off-by: Mariano Uvalle <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
acb33ea9ab
commit
dff049e7f8
4 changed files with 62 additions and 16 deletions
|
|
@ -1,17 +1,32 @@
|
|||
{ pkgs, ... } : {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
programs.zsh = {
|
||||
shellAliases = {
|
||||
n = "nvim";
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.nvim = {
|
||||
enable = mkEnableOption "Enable custom neovim configuration";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.neovim;
|
||||
description = "The neovim package to use";
|
||||
};
|
||||
};
|
||||
|
||||
home.file.".config/nvim" = {
|
||||
recursive = true;
|
||||
source = ./explicit-configs/nvim;
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue