git-sync as a home-manager.service
This commit is contained in:
parent
9833cd25d1
commit
7e42965dcb
3 changed files with 17 additions and 0 deletions
|
@ -116,5 +116,6 @@ in {
|
|||
./modules/packages
|
||||
./modules/files.nix
|
||||
./modules/environment.nix
|
||||
./modules/services
|
||||
];
|
||||
}
|
||||
|
|
5
nix/home-manager/modules/services/default.nix
Normal file
5
nix/home-manager/modules/services/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./git-sync.nix
|
||||
];
|
||||
}
|
11
nix/home-manager/modules/services/git-sync.nix
Normal file
11
nix/home-manager/modules/services/git-sync.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{config, ...}: {
|
||||
services.git-sync = {
|
||||
enable = true;
|
||||
repositories = {
|
||||
"org-roam" = {
|
||||
path = "${config.home.homeDirectory}/org-roam";
|
||||
interval = 300;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue