75fa0ae5af
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
18 lines
462 B
Nix
18 lines
462 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.git-sync = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@git-sync@"; };
|
|
repositories.test = {
|
|
path = "/a/path";
|
|
uri = "git+ssh://user@example.com:/~user/path/to/repo.git";
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
serviceFile=LaunchAgents/org.nix-community.home.git-sync-test.plist
|
|
assertFileExists "$serviceFile"
|
|
assertFileContent "$serviceFile" ${./expected-agent.plist}
|
|
'';
|
|
}
|