mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
Added rust
This commit is contained in:
parent
e115a557c6
commit
3f0c292332
3 changed files with 35 additions and 2 deletions
|
@ -35,9 +35,10 @@
|
|||
home-manager.users.${user} = {
|
||||
imports = [
|
||||
./home.nix
|
||||
./modules/zsh.nix
|
||||
./modules/git.nix
|
||||
./modules/urxvt.nix
|
||||
./modules/vim.nix
|
||||
./modules/zsh.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
12
home.nix
12
home.nix
|
@ -3,6 +3,13 @@
|
|||
let
|
||||
user = "nixolas";
|
||||
editor = "vim";
|
||||
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
|
||||
nixpkgs = import <nixpkgs> {
|
||||
overlays = [ moz_overlay ];
|
||||
};
|
||||
ruststable = (nixpkgs.latest.rustChannels.stable.rust.override {
|
||||
extensions = [ "rust-src" "rust-analysis" ];}
|
||||
);
|
||||
in
|
||||
{
|
||||
|
||||
|
@ -32,6 +39,11 @@ in
|
|||
powerline
|
||||
|
||||
nodejs # required for coc-nvim
|
||||
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
|
||||
# Gui application
|
||||
firefox
|
||||
libsForQt5.kate
|
||||
|
|
20
rust-shell-template.nix
Normal file
20
rust-shell-template.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs ? import <nixpkgs> {}}:
|
||||
|
||||
let
|
||||
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
||||
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
||||
ruststable = (pkgs.latest.rustChannels.stable.default.override {
|
||||
extensions = [
|
||||
"rust-src"
|
||||
"rustfmt"
|
||||
"clippy"
|
||||
];
|
||||
});
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
ruststable
|
||||
];
|
||||
|
||||
RUST_BACKTRACE = 1;
|
||||
}
|
Loading…
Reference in a new issue