fixes rust
This commit is contained in:
parent
784a02d4f8
commit
623e379000
2 changed files with 15 additions and 21 deletions
|
|
@ -1,23 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.rust = {
|
||||
enable = lib.mkEnableOption "System Rust Environment";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.rust.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
rustup
|
||||
rust-analyzer
|
||||
clippy
|
||||
cargo-edit
|
||||
cargo-watch
|
||||
cargo-outdated
|
||||
cargo-audit
|
||||
minijinja-cli
|
||||
];
|
||||
{pkgs, ...}: let
|
||||
rustToolchain = pkgs.symlinkJoin {
|
||||
name = "rust-toolchain";
|
||||
paths = with pkgs; [rustc cargo rustfmt clippy];
|
||||
};
|
||||
in {
|
||||
environment.systemPackages = with pkgs; [
|
||||
rustToolchain
|
||||
rust-analyzer
|
||||
cargo-edit
|
||||
cargo-watch
|
||||
cargo-outdated
|
||||
cargo-audit
|
||||
minijinja-cli
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue