15 lines
374 B
Nix
15 lines
374 B
Nix
{ config, lib, pkgs, ... }:
|
|
let cfg = config.my.git-sync;
|
|
in {
|
|
options.my.git-sync = { enable = lib.mkEnableOption "git-sync"; };
|
|
|
|
config.services.git-sync = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
repositories = {
|
|
"org" = {
|
|
path = "${config.home.homeDirectory}/org";
|
|
uri = "git+ssh://git@git.failco.de:jakalx/org.git";
|
|
};
|
|
};
|
|
};
|
|
}
|