about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/rust/default.nix16
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" ];
   };