Skip to content

Commit

Permalink
feat(system): use rustup package
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 2, 2024
1 parent 72b2c4b commit 46ba96d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
./modules/editorconfig.nix
./modules/yamllint.nix
./modules/go.nix
./modules/rust.nix
./modules/fzf.nix
./modules/tmux
./modules/neovim
Expand Down Expand Up @@ -137,6 +138,7 @@
./modules/editorconfig.nix
./modules/yamllint.nix
./modules/go.nix
./modules/rust.nix
./modules/fzf.nix
./modules/ghostty
./modules/rio
Expand Down
4 changes: 3 additions & 1 deletion modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
# exclude 'dist' and 'node_modules' folders as well
home.activation.time-machine-exclusions = ''
/usr/bin/tmutil addexclusion /Users/carlos/Developer/Go/
find /Users/carlos/Developer -maxdepth 3 \( -name 'dist' -or -name 'node_modules' \) -not -path "*/Go/*" -not -path "*/.git/*" | while read -r p; do
/usr/bin/tmutil addexclusion /Users/carlos/.cargo/
/usr/bin/tmutil addexclusion /Users/carlos/.rustup/
find /Users/carlos/Developer -maxdepth 3 \( -name 'dist' -or -name 'node_modules' -or -name 'target' \) -not -path "*/Go/*" -not -path "*/.git/*" | while read -r p; do
echo "TimeMachine: excluding $p..."
/usr/bin/tmutil addexclusion "$p"
done
Expand Down
7 changes: 2 additions & 5 deletions modules/pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@

# treesitter, lsps, formatters, etc
bash-language-server
cargo
clang-tools # clangd lsp
delve
dockerfile-language-server-nodejs
Expand All @@ -73,12 +72,10 @@
nixfmt-rfc-style
pgformatter
prettier
rust-analyzer
rustc
rustfmt
rustup
shellcheck
shfmt
sql-formatter
# sql-formatter
stylua
sumneko-lua-language-server
tailwindcss-language-server
Expand Down
6 changes: 6 additions & 0 deletions modules/rust.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ ... }:
{
programs.fish.interactiveShellInit = ''
fish_add_path -p ~/.cargo/bin/
'';
}

0 comments on commit 46ba96d

Please sign in to comment.