Configure cargo

This commit is contained in:
Emi Simpson 2023-03-15 21:20:09 -04:00
parent 4a2201069c
commit 8a41ab75ae
Signed by: Emi
GPG key ID: A12F2C2FFDC3D847
2 changed files with 6 additions and 0 deletions

View file

@ -111,6 +111,10 @@
text = builtins.concatStringsSep "\n" (import programs/ssh/authorizedKeys.nix);
target = ".ssh/authorized_keys";
};
home.file.cargoConfig = {
source = programs/cargo.toml;
target = ".cargo/config";
};
services.gpg-agent = {
enable = true;

View file

@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "target-cpu=native"]