mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-04 16:11:06 +01:00
tests/git-sync: reorganize darwin and linux
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
2c4f8cb7d6
commit
e9bde7692e
8 changed files with 9 additions and 10 deletions
18
tests/modules/services/git-sync/darwin/basic.nix
Normal file
18
tests/modules/services/git-sync/darwin/basic.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue