1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/cargo/example-config.nix
Friedrich Altheide 86ff0ef506 cargo: add module
2025-11-27 22:29:55 -06:00

22 lines
403 B
Nix

{
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}
'';
}