28 lines
600 B
Nix
28 lines
600 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
feature = import ./common.nix { inherit pkgs; };
|
|
in
|
|
{
|
|
options = {
|
|
devShells.rust = lib.mkOption {
|
|
type = lib.types.package;
|
|
default = feature.devShell;
|
|
description = "Rust development shell with cargo and rust-analyzer";
|
|
};
|
|
my.dev.rust = {
|
|
enable = lib.mkEnableOption "Install Rust tooling globally";
|
|
users = lib.mkOption {
|
|
type = inputs.self.lib.usersOptionType lib;
|
|
default = config.my.toggleUsers.dev;
|
|
description = "Users to install Rust packages for";
|
|
};
|
|
};
|
|
};
|
|
}
|