fix(neovim): set editor env var correctly

This commit is contained in:
uku 2024-11-26 16:28:38 +01:00
parent 22d3010e99
commit 22ede14298
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 11 additions and 16 deletions

View file

@ -53,22 +53,16 @@ in {
console.keyMap = "fr";
environment = {
systemPackages = with pkgs; [
btop
curl
git
htop
ncdu
neovim
ripgrep
wget
];
variables = {
EDITOR = lib.getExe pkgs.neovim;
};
};
environment.systemPackages = with pkgs; [
btop
curl
git
htop
ncdu
neovim
ripgrep
wget
];
hm = {
home = {inherit stateVersion;};

View file

@ -1,6 +1,7 @@
{pkgs, ...}: {
hm.programs.neovim = {
enable = true;
defaultEditor = true;
extraLuaConfig = builtins.readFile ./init.lua;
extraPackages = with pkgs; [