From 0946461193d7264c897af3332e15cb73eb4f1c8f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 2 Dec 2016 23:29:50 +0100 Subject: Framework for git-sync --- ymir.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index ad711c13..e8837dcd 100644 --- a/ymir.nix +++ b/ymir.nix @@ -711,7 +711,7 @@ in rec { enable = true; keyFile = "/var/lib/acme/yggdrasil.li/key.pem"; certificateFile = "/var/lib/acme/yggdrasil.li/fullchain.pem"; - plugins = [ "note-text" "note-chat" "logging" "autosave" "certificate-auth" ]; + plugins = [ "note-text" "note-chat" "logging" "autosave" "certificate-auth" "directory-sync" ]; extraConfig = '' [certificate-auth] ca-list=/var/lib/infinoted/ca.cert.pem @@ -720,9 +720,19 @@ in rec { [autosave] interval=5 + + [directory-sync] + directory=/var/lib/infinoted/dirsync + interval=5 + hook=/var/lib/infinoted/git-sync.sh ''; }; + users.extraUsers."infinoted" = { + home = "/var/lib/infinoted"; + createHome = true; + }; + services.haveged = { enable = true; }; -- cgit v1.2.3