nix: Get Rust version from rust-toolchain

This commit is contained in:
Konstantin Shabanov 2026-07-20 10:20:21 +00:00
parent 3bf4290802
commit d48b58a9a2

View File

@ -40,13 +40,7 @@
overlays = [ rust-overlay.overlays.default ];
};
rust-bin = pkgs.rust-bin.nightly."2026-05-24".default.override {
extensions = [
"rust-analyzer"
"rust-src"
];
targets = [ "x86_64-unknown-redox" ];
};
rust-bin = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
in
{
formatter = pkgs.nixfmt-rfc-style;