slight changes
This commit is contained in:
parent
a9d1fb86bc
commit
2395edea4d
4 changed files with 13 additions and 19 deletions
|
|
@ -1,31 +1,21 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.rust = {
|
||||
enable = lib.mkEnableOption "System Rust Environment";
|
||||
};
|
||||
options.rust.enable = lib.mkEnableOption "System Rust Environment";
|
||||
|
||||
config = lib.mkIf config.rust.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
rustc
|
||||
rustup
|
||||
rust-analyzer
|
||||
clippy
|
||||
cargo-edit
|
||||
cargo-watch
|
||||
cargo-outdated
|
||||
cargo-audit
|
||||
rust-analyzer
|
||||
clippy
|
||||
minijinja-cli
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
PATH = [
|
||||
"${pkgs.rustc}/bin"
|
||||
"${pkgs.cargo}/bin"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue