diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-12-02 23:29:50 +0100 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-12-02 23:29:50 +0100 |
commit | 0946461193d7264c897af3332e15cb73eb4f1c8f (patch) | |
tree | d7620e6b83456f7d451b884ee25ee9ae4aecee5f | |
parent | 9381fa59a26ec1a4206808b444d3882fe8afe25e (diff) | |
download | nixos-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.nix | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 | }; |