Migrate nvim config
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
./options.nix
|
||||
./desktop/firefox.nix
|
||||
./desktop/gnome.nix
|
||||
./editors/neovim.nix
|
||||
./editors/neovim
|
||||
./editors/vscode.nix
|
||||
./security/gpg.nix
|
||||
./security/pass.nix
|
||||
|
@ -1,18 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.editors.neovim;
|
||||
in {
|
||||
options.modules.editors.neovim = {
|
||||
enable = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
};
|
||||
};
|
||||
}
|
26
modules/editors/neovim/default.nix
Normal file
26
modules/editors/neovim/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.editors.neovim;
|
||||
in {
|
||||
options.modules.editors.neovim = {
|
||||
enable = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
user.packages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
|
||||
home.configFile = {
|
||||
"nvim/init.lua" = { source = ./init.lua; };
|
||||
"nvim/lua" = { source = ./lua; recursive = true; };
|
||||
};
|
||||
|
||||
environment.shellAliases = {
|
||||
vim = "nvim";
|
||||
v = "nvim";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user