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

31 lines
504 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,
...
}:
2024-08-01 16:24:09 +04:00
let
2023-08-11 00:30:24 +04:00
cfg = config.modules.dev.editors.nvim;
in {
2023-07-09 02:15:18 +04:00
options.modules.dev.editors.nvim = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-09 02:15:18 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.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;
};
};
}