summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-12-02 23:29:50 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-12-02 23:29:50 +0100
commit0946461193d7264c897af3332e15cb73eb4f1c8f (patch)
treed7620e6b83456f7d451b884ee25ee9ae4aecee5f
parent9381fa59a26ec1a4206808b444d3882fe8afe25e (diff)
downloadnixos-0946461193d7264c897af3332e15cb73eb4f1c8f.tar
nixos-0946461193d7264c897af3332e15cb73eb4f1c8f.tar.gz
nixos-0946461193d7264c897af3332e15cb73eb4f1c8f.tar.bz2
nixos-0946461193d7264c897af3332e15cb73eb4f1c8f.tar.xz
nixos-0946461193d7264c897af3332e15cb73eb4f1c8f.zip
Framework for git-sync
-rw-r--r--ymir.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/ymir.nix b/ymir.nix
index ad711c13..e8837dcd 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -711,7 +711,7 @@ in rec {
711 enable = true; 711 enable = true;
712 keyFile = "/var/lib/acme/yggdrasil.li/key.pem"; 712 keyFile = "/var/lib/acme/yggdrasil.li/key.pem";
713 certificateFile = "/var/lib/acme/yggdrasil.li/fullchain.pem"; 713 certificateFile = "/var/lib/acme/yggdrasil.li/fullchain.pem";
714 plugins = [ "note-text" "note-chat" "logging" "autosave" "certificate-auth" ]; 714 plugins = [ "note-text" "note-chat" "logging" "autosave" "certificate-auth" "directory-sync" ];
715 extraConfig = '' 715 extraConfig = ''
716 [certificate-auth] 716 [certificate-auth]
717 ca-list=/var/lib/infinoted/ca.cert.pem 717 ca-list=/var/lib/infinoted/ca.cert.pem
@@ -720,9 +720,19 @@ in rec {
720 720
721 [autosave] 721 [autosave]
722 interval=5 722 interval=5
723
724 [directory-sync]
725 directory=/var/lib/infinoted/dirsync
726 interval=5
727 hook=/var/lib/infinoted/git-sync.sh
723 ''; 728 '';
724 }; 729 };
725 730
731 users.extraUsers."infinoted" = {
732 home = "/var/lib/infinoted";
733 createHome = true;
734 };
735
726 services.haveged = { 736 services.haveged = {
727 enable = true; 737 enable = true;
728 }; 738 };