forked from mirrors_public/oddlama_nix-config
feat: isolate neovim and begin second configuration to nixify the first
This commit is contained in:
parent
8de313d277
commit
bf7ec956ae
6 changed files with 121 additions and 18 deletions
|
@ -1,11 +1,5 @@
|
|||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
programs.neovim-custom.enable = true;
|
||||
|
||||
home.persistence."/state".directories = [
|
||||
".local/share/nvim"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./neovim.nix
|
||||
./secrets.nix
|
||||
./uid.nix
|
||||
|
||||
|
|
19
users/modules/neovim.nix
Normal file
19
users/modules/neovim.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options.programs.neovim-custom = {
|
||||
enable = lib.mkEnableOption "Neovim";
|
||||
package = lib.mkPackageOption pkgs "neovim" {};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.neovim-custom.enable {
|
||||
home = {
|
||||
# TODO packages = [config.programs.neovim-custom.package];
|
||||
sessionVariables.EDITOR = "nvim";
|
||||
shellAliases.vimdiff = "nvim -d";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue