git-sync as a home-manager.service

This commit is contained in:
Anthony Cicchetti 2024-05-03 16:01:48 -04:00
parent 9833cd25d1
commit 7e42965dcb
3 changed files with 17 additions and 0 deletions

View file

@ -116,5 +116,6 @@ in {
./modules/packages
./modules/files.nix
./modules/environment.nix
./modules/services
];
}

View file

@ -0,0 +1,5 @@
{...}: {
imports = [
./git-sync.nix
];
}

View file

@ -0,0 +1,11 @@
{config, ...}: {
services.git-sync = {
enable = true;
repositories = {
"org-roam" = {
path = "${config.home.homeDirectory}/org-roam";
interval = 300;
};
};
};
}