nixos/modules/dev/editors/nvim/default.nix

31 lines
506 B
Nix
Raw Normal View History

2023-07-09 02:15:18 +04:00
{
2023-08-11 00:30:24 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.dev.editors.nvim;
in {
2023-07-09 02:15:18 +04:00
options.modules.dev.editors.nvim = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
2023-08-11 00:30:24 +04:00
# because yes
users.users.sako.packages = with pkgs; [
2023-07-09 02:15:18 +04:00
neovim
2023-08-11 00:30:24 +04:00
# flakes
2023-08-06 12:53:37 +04:00
direnv
2023-08-11 00:30:24 +04:00
# vscode like git
lazygit
2023-07-09 02:15:18 +04:00
];
home-manager.users.sako.xdg.configFile.nvim = {
source = ../../../../config/nvim;
recursive = true;
};
};
}