mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
22 lines
403 B
Nix
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}
|
|
'';
|
|
}
|