All checks were successful
Check flake / build-amd64-linux (push) Successful in 3m14s
21 lines
342 B
Nix
21 lines
342 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.modules.programs.dev.rust;
|
|
in {
|
|
options.modules.programs.dev.rust = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
example = true;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
user.packages = with pkgs; [
|
|
rustc
|
|
rustup
|
|
rustfmt
|
|
rust-bindgen
|
|
];
|
|
};
|
|
}
|