move to external cargo config

This commit is contained in:
Tao Tien 2024-03-17 00:22:50 -07:00
parent 43a3c2df5b
commit 4311082a72
6 changed files with 17 additions and 6 deletions

View file

@ -2,12 +2,15 @@
pkgs,
inputs,
...
}: {
}: let
cargoFile = builtins.readFile ./cargo.toml;
cargoConfig = builtins.replaceStrings ["path/to/sccache"] ["${pkgs.sccache}/bin/sccache"] cargoFile;
in {
imports = [
(import ./helix.nix {inherit pkgs inputs;})
];
home.file.".cargo/config.toml".text = builtins.readFile ./cargo.toml;
home.file.".cargo/config.toml".text = cargoConfig;
programs = {
jujutsu = {

View file

@ -3,7 +3,8 @@ rr = "run --release"
[build]
target = "x86_64-unknown-linux-gnu"
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
# rustc-wrapper = "${pkgs.sccache}/bin/sccache"
rustc-wrapper = "path/to/sccache"
rustflags = ["-Z", "threads=8"]
[unstable]

View file

@ -1,7 +1,7 @@
source ~/.cache/starship/init.nu
source ~/.zoxide.nu
alias cringe = sudo bootctl set-oneshot auto-windows
alias fetch = macchina
alias fetch = neofetch
alias ff = firefox
alias gc = sudo nix-collect-garbage -d
alias js = jj status