From 7e42965dcbad3b728f9b5cbe8edd7c7559bbfad7 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Fri, 3 May 2024 16:01:48 -0400 Subject: [PATCH] git-sync as a home-manager.service --- nix/home-manager/home.nix | 1 + nix/home-manager/modules/services/default.nix | 5 +++++ nix/home-manager/modules/services/git-sync.nix | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 nix/home-manager/modules/services/default.nix create mode 100644 nix/home-manager/modules/services/git-sync.nix diff --git a/nix/home-manager/home.nix b/nix/home-manager/home.nix index 430a591..e1cc423 100644 --- a/nix/home-manager/home.nix +++ b/nix/home-manager/home.nix @@ -116,5 +116,6 @@ in { ./modules/packages ./modules/files.nix ./modules/environment.nix + ./modules/services ]; } diff --git a/nix/home-manager/modules/services/default.nix b/nix/home-manager/modules/services/default.nix new file mode 100644 index 0000000..9fa6e2f --- /dev/null +++ b/nix/home-manager/modules/services/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./git-sync.nix + ]; +} diff --git a/nix/home-manager/modules/services/git-sync.nix b/nix/home-manager/modules/services/git-sync.nix new file mode 100644 index 0000000..fc21a26 --- /dev/null +++ b/nix/home-manager/modules/services/git-sync.nix @@ -0,0 +1,11 @@ +{config, ...}: { + services.git-sync = { + enable = true; + repositories = { + "org-roam" = { + path = "${config.home.homeDirectory}/org-roam"; + interval = 300; + }; + }; + }; +}