cargo: add module

This commit is contained in:
Friedrich Altheide 2025-11-26 06:15:02 +01:00 committed by Austin Horstman
parent c220f242cd
commit 86ff0ef506
6 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{
programs.cargo = {
enable = true;
settings = {
net = {
git-fetch-with-cli = true;
};
};
};
nmt.script =
let
configTestPath = "home-files/.cargo/config.toml";
in
''
assertPathNotExists home-files/.cargo/config
assertFileExists ${configTestPath}
assertFileContent ${configTestPath} \
${./example-config.toml}
'';
}