add sccache
Some checks failed
Plex Update / update (push) Successful in 1m30s
Lint / lint (push) Failing after 1m15s

This commit is contained in:
Vivian 2023-11-10 23:35:26 +01:00
parent 0eebdf6bd0
commit ec0c2f466a
3 changed files with 23 additions and 2 deletions

View file

@ -35,7 +35,6 @@ in
plexamp plexamp
spotify spotify
qmk qmk
rustup
solo2-cli solo2-cli
tex tex
unzip unzip
@ -47,6 +46,7 @@ in
programs = { programs = {
v.vscode.enable = true; v.vscode.enable = true;
v.nvim.enable = true; v.nvim.enable = true;
v.rust.enable = true;
riff = { riff = {
enable = true; enable = true;

View file

@ -1,3 +1,3 @@
{ ... }: { { ... }: {
imports = [ ./catppuccin.nix ./nvim.nix ./riff.nix ./vscode.nix ./git.nix ]; imports = [ ./catppuccin.nix ./nvim.nix ./riff.nix ./vscode.nix ./git.nix ./rust.nix ];
} }

View file

@ -0,0 +1,21 @@
{ pkgs, lib, config, ... }:
with lib;
let cfg = config.programs.v.rust;
in {
options.programs.v.rust = { enable = mkEnableOption "rust"; };
config = mkIf cfg.enable {
home.packages = with pkgs; [ rustup ];
home.file = {
".cargo/config.toml".text = ''
[registries.crates-io]
protocol = "sparse"
[build]
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
'';
};
home.sessionPath = [ "$HOME/.cargo/bin" ];
};
}