fixes rust
This commit is contained in:
parent
784a02d4f8
commit
623e379000
2 changed files with 15 additions and 21 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
./i3-xfce.nix
|
./i3-xfce.nix
|
||||||
./ollama.nix
|
./ollama.nix
|
||||||
./cups.nix
|
./cups.nix
|
||||||
|
./rust.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
npm.enable = true;
|
npm.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,16 @@
|
||||||
{
|
{pkgs, ...}: let
|
||||||
lib,
|
rustToolchain = pkgs.symlinkJoin {
|
||||||
pkgs,
|
name = "rust-toolchain";
|
||||||
config,
|
paths = with pkgs; [rustc cargo rustfmt clippy];
|
||||||
...
|
|
||||||
}: {
|
|
||||||
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
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
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