Add all of iogamaster modules
This commit is contained in:
37
modules/nixos/apps/neovim/default.nix
Normal file
37
modules/nixos/apps/neovim/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.frajul; let
|
||||
cfg = config.apps.neovim;
|
||||
in {
|
||||
options.apps.neovim = with types; {
|
||||
enable = mkBoolOpt false "Enable or disable neovim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.variables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
environment.systemPackages = [
|
||||
pkgs.neovim
|
||||
|
||||
pkgs.lazygit
|
||||
pkgs.stylua
|
||||
pkgs.sumneko-lua-language-server
|
||||
pkgs.ripgrep
|
||||
];
|
||||
|
||||
home.persist.directories = [
|
||||
".local/share/nvim"
|
||||
".vim"
|
||||
".wakatime"
|
||||
];
|
||||
|
||||
home.persist.files = [".wakatime.cfg" ".wakatime.bdb"];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user