services.git-sync.enable
Whether to enable git-sync services.
Type: boolean
Default:
false
Example:
true
Declared by:
services.git-sync.package
The git-sync package to use.
Type: package
Default:
pkgs.git-sync
Declared by:
services.git-sync.repositories
The repositories that should be synchronized.
Type: attribute set of (submodule)
Example:
{
xyz = {
path = "${config.home.homeDirectory}/foo/home-manager";
uri = "git@github.com:nix-community/home-manager.git";
interval = 1000;
};
}
Declared by:
services.git-sync.repositories.<name>.extraPackages
Extra packages available to git-sync.
Type: list of package
Default:
[ ]
Example:
with pkgs; [ git-crypt ]
Declared by:
services.git-sync.repositories.<name>.interval
The interval, specified in seconds, at which the synchronization will be triggered even without filesystem changes.
Type: signed integer
Default:
500
Declared by:
services.git-sync.repositories.<name>.path
The path at which to sync the repository
Type: absolute path
Declared by:
services.git-sync.repositories.<name>.uri
The URI of the remote to be synchronized. This is only used in the event that the directory does not already exist. See https://git-scm.com/docs/git-clone#_git_urls for the supported URIs.
This option is not supported on Darwin.
Type: string
Example:
"git+ssh://user@example.com:/~[user]/path/to/repo.git"
Declared by: