add nixvim as default EDITOR

This commit is contained in:
Christoph Hollizeck 2024-04-07 17:38:36 +02:00
parent 9e3bff28fb
commit b9123f5666
No known key found for this signature in database
GPG key ID: A8185688CDE3921F
3 changed files with 21 additions and 8 deletions

View file

@ -16,9 +16,22 @@ in
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
less
wyrdgard.neovim
];
environment = {
systemPackages = with pkgs; [
less
wyrdgard.neovim
];
variables = {
EDITOR = "nvim";
SUDOEDITOR = "nvim";
};
};
wyrdgard.home = {
extraOptions = {
# Use Neovim for Git diffs.
programs.fish.shellAliases.vimdiff = "nvim -d";
};
};
};
}

View file

@ -28,7 +28,7 @@ let
pkgs.runCommandNoCC "propagated-icon"
{
passthru = {
fileName = cfg.icon.fileName;
inherit (fileName);
};
}
''

View file

@ -30,11 +30,11 @@ with lib.wyrdgard;
time = "10:00";
};
hardware = {
bluetooth = enabled;
gpu.nvidia = enabled;
bluetooth = enabled;
gpu.nvidia = enabled;
};
};
};
};
system.stateVersion = "23.11";
}