Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rust

Common module

programs.rust.docs.enable

Whether to enable Rust documentation script.

Type

boolean

Default

true

Example

true

programs.rust.docs.package

The Rust documentation script.

Type

null or package

Default

null

programs.rust.enable

Whether to enable Rust toolchain.

Type

boolean

Default

false

Example

true

programs.rust.package

The Rust toolchain to use.

Type

null or package

Default

let
  inherit (pkgs.stdenv.hostPlatform) system;
  rustPkgs = inputs.rust-overlay.packages.${system};
in rustPkgs.rust.override {
  extensions = ["rust-analyzer"];
}

Usage

{inputs, ...}: {
  imports = [inputs.nix-dots.commonModules.rust];
}

Source

modules/rust/common.nix

NixOS module

No options.

Usage

{inputs, ...}: {
  imports = [inputs.nix-dots.nixosModules.rust];
}

Source

modules/rust/nixos.nix

Home Manager module

No options.

Usage

{inputs, ...}: {
  imports = [inputs.nix-dots.homeModules.rust];
}

Source

modules/rust/home.nix