aboutsummaryrefslogtreecommitdiffstats
path: root/home/cargo/default.nix
blob: b01ff1a46c84ed710bef6bbff0cb7548d434a8e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ pkgs, ... }:
{
  xdg.configFile."/home/petri/.cargo/config.toml".source =
    (pkgs.formats.toml { }).generate "cargo-config"
      {
        registry = {
          "global-credential-providers" = [ "cargo:token" ];
        };
        registries = {
          "crates-io" = {
            protocol = "sparse"; # The protocol to use to access crates.io.
          };
          relesoft = {
            index = "sparse+https://git.relesoft.io/api/packages/relesoft/cargo/";
          };
        };
        unstable = {
          gc = true;
        };
        "future-incompat-report" = {
          frequency = "always"; # when to display a notification about a future incompat report
        };
        cache = {
          "auto-clean-frequency" = "1 day"; # How often to perform automatic cache cleaning
        };
        term = {
          color = "auto";
          hyperlinks = true; # whether cargo inserts links into output
          unicode = true; # whether cargo can render output using non-ASCII unicode characters
          progress = {
            when = "auto"; # whether cargo shows progress bar
            width = 80; # width of progress bar
            "term-integration" = true; # whether cargo reports progress to terminal emulator
          };
        };
      };
}