feat(neovim,devkit): use neovim homeManagerModule

This commit is contained in:
Guz
2025-03-05 18:07:04 -03:00
parent e077f01821
commit f6d0e6a520
4 changed files with 47 additions and 27 deletions

View File

@@ -10,6 +10,9 @@
devkitPkgs = self.packages.${pkgs.system}.devkit;
in {
imports = [
self.homeManagerModules.neovim
];
options.devkit = with lib; {
enable = mkEnableOption "Enable devkit configuration and packages";
@@ -25,6 +28,10 @@ in {
type = with types; bool;
default = cfg.enable;
};
neovim.enable = mkOption {
type = with types; bool;
default = cfg.enable;
};
starship.enable = mkOption {
type = with types; bool;
default = cfg.enable;
@@ -52,7 +59,6 @@ in {
];
home.sessionVariables = {
# EDITOR = "nvim"; # Default editor, already defined by dot013-nvim
SHELL = lib.mkIf cfg.zsh.enable "${lib.getExe config.programs.zsh.package}";
TERM = lib.mkIf cfg.ghostty.enable "xterm-ghostty";
TERMINAL = lib.mkIf cfg.ghostty.enable "${lib.getExe config.programs.ghostty.package}";
@@ -115,8 +121,7 @@ in {
};
## Neovim (Editor)
programs.neovim.enable = true; # Already enabled by dot013-nvim
programs.neovim.package = devkitPkgs.neovim;
neovim.enable = cfg.neovim.enable;
## Starship (Shell decoration)
programs.starship = lib.mkIf cfg.starship.enable {
@@ -133,9 +138,6 @@ in {
};
# Zellij (Terminal multiplexer)
# CURRENTLY BORKED https://github.com/zellij-org/zellij/issues/3970
programs.zellij = lib.mkIf cfg.zellij.enable {
enable = true;
package = devkitPkgs.zellij;