made development into an option

added it to configuration
This commit is contained in:
2026-07-12 12:55:40 -05:00
parent 4f6c1e337d
commit ac862dfc1f
10 changed files with 200 additions and 87 deletions
+19 -10
View File
@@ -1,14 +1,23 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
cargo
rustc
rustfmt
clippy
];
config,
lib,
pkgs,
...
}:
let
cfg = config.workstation.development.rust;
in
{
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
cargo
rustc
rustfmt
clippy
];
environment.variables = {
RUST_BACKTRACE = "1";
environment.variables = {
RUST_BACKTRACE = "1";
};
};
}