Files
Nixos/modules/home/darwin/env/rust.nix
T
2026-02-17 15:22:31 +01:00

26 lines
344 B
Nix

{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.home.env.rust;
in
{
options.home.env.rust = {
enable = mkEnableOption "System nh service";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
rust-bin.stable.latest.default.override
{
extensions = [ "rust-src" ];
}
];
};
}