2023-03-19 16:10:00 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.aa.apps.neovim;
|
|
|
|
in {
|
|
|
|
options.aa.apps.neovim = with types; {
|
|
|
|
enable = mkEnableOption "neovim";
|
2023-03-30 02:56:27 +00:00
|
|
|
|
|
|
|
tmuxThemePath = mkOption {
|
|
|
|
type = str;
|
|
|
|
default = "vim-tmuxline/tmux_theme";
|
|
|
|
description = "Where to store tmux theme generated by vim-tmuxline";
|
|
|
|
};
|
2023-03-19 16:10:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-06-01 07:30:09 +00:00
|
|
|
environment.systemPackages = with pkgs; [neovim];
|
2023-03-19 16:10:00 +00:00
|
|
|
|
2023-03-30 02:56:27 +00:00
|
|
|
aa.home.dataFile = {
|
|
|
|
${cfg.tmuxThemePath}.source = ./tmux_theme;
|
|
|
|
};
|
2023-03-19 16:10:00 +00:00
|
|
|
};
|
|
|
|
}
|