aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-09-10 14:50:36 +0900
committernsfisis <nsfisis@gmail.com>2023-09-10 14:50:36 +0900
commitf609a0be2d3b0fba6af1f0d778b959c18b9dbffe (patch)
tree87c5d444a77f3bc86fc46f0c62a4ded6867911a4
parent4ffc15e34971bd0b41de66c9fc40f9d44a632a35 (diff)
downloaddotfiles-f609a0be2d3b0fba6af1f0d778b959c18b9dbffe.tar.gz
dotfiles-f609a0be2d3b0fba6af1f0d778b959c18b9dbffe.tar.zst
dotfiles-f609a0be2d3b0fba6af1f0d778b959c18b9dbffe.zip
home-manager: install rustup
-rw-r--r--INSTALL.txt4
-rw-r--r--home-manager/home.nix1
-rw-r--r--mitamae/default.rb10
3 files changed, 11 insertions, 4 deletions
diff --git a/INSTALL.txt b/INSTALL.txt
index 34ce101..84eab70 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -11,9 +11,6 @@ $ brew install --cask \
keepassxc \
;
-$ brew tap "rhysd/hgrep" "https://github.com/rhysd/hgrep"
-$ brew install hgrep
-
# Latest version: https://github.com/adobe-fonts/source-han-code-jp/releases/latest
$ curl -fLo ~/Library/Fonts/SourceHanCodeJP.ttc --create-dirs https://github.com/adobe-fonts/source-han-code-jp/releases/download/2.012R/SourceHanCodeJP.ttc
$ sudo atsutil databases -remove
@@ -41,7 +38,6 @@ $ sudo apt install \
$ sudo adduser $(whoami) docker
-$ cargo install hgrep
$ cargo install alacritty
$ cargo install cargo-compete
diff --git a/home-manager/home.nix b/home-manager/home.nix
index 6ab38da..0533e36 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -33,6 +33,7 @@ in
pkgs.python311
pkgs.ripgrep
pkgs.ruby_3_1
+ pkgs.rustup
pkgs.sqlite
pkgs.tokei
pkgs.tree
diff --git a/mitamae/default.rb b/mitamae/default.rb
index ea2859a..31f0316 100644
--- a/mitamae/default.rb
+++ b/mitamae/default.rb
@@ -85,3 +85,13 @@ link "#{home}/.config/alacritty/alacritty.local.yml" do
is_macos = node[:targetArch].include?("darwin")
to "#{home}/.config/alacritty/alacritty.#{is_macos ? "macos" : "linux"}.yml"
end
+
+# Rust
+execute "rustup: install nightly toolchain" do
+ command "rustup toolchain install nightly"
+ not_if "rustup toolchain list | grep nightly"
+end
+execute "cargo: install hgrep" do
+ command "cargo install hgrep"
+ not_if "type hgrep"
+end