Get rid of init scripts for rust, emacs and vim
It isn't very reliable.
This commit is contained in:
parent
0f1a58157b
commit
5157b86963
|
@ -21,12 +21,5 @@
|
||||||
alias.rs = "rustc";
|
alias.rs = "rustc";
|
||||||
alias.rsp = "rustup";
|
alias.rsp = "rustup";
|
||||||
alias.ca = "cargo";
|
alias.ca = "cargo";
|
||||||
|
|
||||||
init = ''
|
|
||||||
if [ ! -d "$RUSTUP_HOME" ]; then
|
|
||||||
${pkgs.rustup}/bin/rustup update nightly
|
|
||||||
${pkgs.rustup}/bin/rustup default nightly
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,16 +43,6 @@
|
||||||
|
|
||||||
env.PATH = [ "$HOME/.emacs.d/bin" ];
|
env.PATH = [ "$HOME/.emacs.d/bin" ];
|
||||||
zsh.rc = lib.readFile <config/emacs/aliases.zsh>;
|
zsh.rc = lib.readFile <config/emacs/aliases.zsh>;
|
||||||
|
|
||||||
# My emacs config is too stateful to manage with nix
|
|
||||||
init = ''
|
|
||||||
if [ ! -d "$HOME/.emacs.d" ]; then
|
|
||||||
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs "$HOME/.emacs.d"
|
|
||||||
fi
|
|
||||||
if [ ! -d "$XDG_CONFIG_HOME/doom" ]; then
|
|
||||||
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs-private "$XDG_CONFIG_HOME/doom"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fonts = [
|
fonts.fonts = [
|
||||||
|
|
|
@ -13,12 +13,5 @@
|
||||||
env.VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
|
env.VIMINIT = "let \\$MYVIMRC='\\$XDG_CONFIG_HOME/nvim/init.vim' | source \\$MYVIMRC";
|
||||||
|
|
||||||
alias.v = "nvim";
|
alias.v = "nvim";
|
||||||
|
|
||||||
# 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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue