Add rust module
This commit is contained in:
parent
d81e6d4063
commit
f0642a0f56
5
config/rust/aliases.zsh
Normal file
5
config/rust/aliases.zsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
alias rs=rustc
|
||||
alias rsp=rustup
|
||||
alias ca=cargo
|
5
config/rust/env.zsh
Normal file
5
config/rust/env.zsh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
||||
export PATH="$CARGO_HOME/bin:$PATH"
|
|
@ -13,6 +13,7 @@
|
|||
./modules/audio/spotify.nix
|
||||
./modules/browser/firefox.nix
|
||||
./modules/dev
|
||||
./modules/dev/rust.nix
|
||||
./modules/editors/emacs.nix
|
||||
./modules/editors/vim.nix
|
||||
./modules/gaming/steam.nix
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
rustup
|
||||
rls
|
||||
];
|
||||
|
||||
home-manager.users.hlissner.xdg.configFile = {
|
||||
"zsh/rc.d/aliases.rust.zsh".source = <config/rust/aliases.zsh>;
|
||||
"zsh/rc.d/env.rust.zsh".source = <config/rust/env.zsh>;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue