diff options
author | Franck Cuny <franck@fcuny.net> | 2022-09-06 17:43:19 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-09-07 19:10:47 -0700 |
commit | a237e9d98b0f706f49b2422e3bd272da880bce30 (patch) | |
tree | f31fbb6f60fb5989be835e5731ed5f833ed1abe1 /home | |
parent | feat(modules/packages): install pkg-config (diff) | |
download | world-a237e9d98b0f706f49b2422e3bd272da880bce30.tar.gz |
fix(home/rust): better setup
Configure the latest beta for rust and pull some tools with it. Change-Id: Icd7e3a7efd2a5485ab7380a9d077613c03617905
Diffstat (limited to '')
-rw-r--r-- | home/rust/default.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/home/rust/default.nix b/home/rust/default.nix index 2fe5053..2f9ef80 100644 --- a/home/rust/default.nix +++ b/home/rust/default.nix @@ -1,5 +1,14 @@ { lib, config, pkgs, ... }: -let cfg = config.my.home.rust; +let + cfg = config.my.home.rust; + ruststable = (pkgs.rust-bin.beta.latest.default.override { + extensions = [ + "rust-src" + "rust-analyzer-preview" + "rust-analysis" + "rustfmt-preview" + ]; + }); in { options.my.home.rust = with lib; { @@ -7,10 +16,7 @@ in }; config = lib.mkIf cfg.enable { - home.packages = with pkgs; [ - rust-bin.beta.latest.default - rust-analyzer - ]; + home.packages = with pkgs; [ ruststable ]; home.sessionVariables.CARGO_HOME = "${config.xdg.dataHome}/cargo"; home.sessionPath = [ "$CARGO_HOME/bin" ]; }; |