about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--flake.lock37
-rw-r--r--flake.nix3
-rw-r--r--home/default.nix2
-rw-r--r--home/profiles/base/default.nix2
4 files changed, 42 insertions, 2 deletions
diff --git a/flake.lock b/flake.lock
index 6ea8643..f1db532 100644
--- a/flake.lock
+++ b/flake.lock
@@ -69,6 +69,21 @@
         "type": "github"
       }
     },
+    "flake-utils_3": {
+      "locked": {
+        "lastModified": 1637014545,
+        "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4",
+        "type": "github"
+      },
+      "original": {
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "type": "github"
+      }
+    },
     "home-manager": {
       "inputs": {
         "nixpkgs": [
@@ -134,10 +149,32 @@
         "home-manager": "home-manager",
         "neovim": "neovim",
         "nixpkgs-2111": "nixpkgs-2111",
+        "rust": "rust",
         "unstable": "unstable",
         "unstable-small": "unstable-small"
       }
     },
+    "rust": {
+      "inputs": {
+        "flake-utils": "flake-utils_3",
+        "nixpkgs": [
+          "unstable"
+        ]
+      },
+      "locked": {
+        "lastModified": 1646274381,
+        "narHash": "sha256-kglX5g7HhSWiTGKz1WOA8DWclj0Wwsq8I50wgY4eS3I=",
+        "owner": "oxalica",
+        "repo": "rust-overlay",
+        "rev": "245c2712f502849041a1b1d0cc6a7588e94b2e3f",
+        "type": "github"
+      },
+      "original": {
+        "owner": "oxalica",
+        "repo": "rust-overlay",
+        "type": "github"
+      }
+    },
     "unstable": {
       "locked": {
         "lastModified": 1645433236,
diff --git a/flake.nix b/flake.nix
index 4a766b9..af766da 100644
--- a/flake.nix
+++ b/flake.nix
@@ -13,6 +13,9 @@
     neovim.url = "github:neovim/neovim?dir=contrib";
     neovim.inputs.nixpkgs.follows = "unstable";
 
+    rust.url = "github:oxalica/rust-overlay";
+    rust.inputs.nixpkgs.follows = "unstable";
+
     # https://github.com/NixOS/nix/pull/5342
     chaotic-nixpkgs.url = "git+https://git.sr.ht/~zachel/chaotic-nixpkgs?ref=main";
     chaotic-nixpkgs.inputs.nixpkgs.follows = "unstable";
diff --git a/home/default.nix b/home/default.nix
index 32627e0..ce303b4 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -5,7 +5,7 @@
     username = "zach";
     hostname = "alpha";
     system = "x86_64-linux";
-    pkgs = import unstable { system = "x86_64-linux"; overlays = with inputs; [ chaotic-nixpkgs.overlay ]; };
+    pkgs = import unstable { system = "x86_64-linux"; overlays = with inputs; [ chaotic-nixpkgs.overlay rust.overlay ]; };
 
     extraModules = [
       ./profiles/populate.nix
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix
index 18e9683..2c0f792 100644
--- a/home/profiles/base/default.nix
+++ b/home/profiles/base/default.nix
@@ -99,7 +99,7 @@ in
       neovim
 
       # Common build tools
-      pkgs.cargo
+      pkgs.rust-bin.nightly.latest.default
       pkgs.go
       pkgs.gcc
       # pkgs.clang