9b1a4956d4
system.userActivationScripts is too sensitive to command failures, blocking the build process. Also: - Make rustup init script idempotent. - Remove doom sync and vim update; I'll do it manually
23 lines
587 B
Nix
23 lines
587 B
Nix
# When I'm stuck in the terminal or don't have access to Emacs, (neo)vim is my
|
|
# go-to. I am a vimmer at heart, after all.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
{
|
|
my = {
|
|
packages = with pkgs; [
|
|
editorconfig-core-c
|
|
neovim
|
|
];
|
|
|
|
env.EDITOR = "nvim";
|
|
env.VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
|
|
|
|
# My vim config is too stateful to manage with nix
|
|
init = ''
|
|
if [ ! -d "$XDG_CONFIG_HOME/nvim" ]; then
|
|
${pkgs.git}/bin/git clone https://github.com/hlissner/.vim "$XDG_CONFIG_HOME/nvim"
|
|
fi
|
|
'';
|
|
};
|
|
}
|