summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 };