From 0f0f1a547f761ffd3a71fd3fbfaffb4044f3b628 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 19 Apr 2020 22:58:41 +0000 Subject: feat(ops/nixos/camden): Configure honk service --- ops/nixos/camden/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ops/nixos') diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix index d360ecc63b25..3bf0559b86d1 100644 --- a/ops/nixos/camden/default.nix +++ b/ops/nixos/camden/default.nix @@ -138,6 +138,24 @@ in lib.fix(self: { }; }; + # Run honk as the ActivityPub server, using all the fancy systemd + # magic. + systemd.services.honk = { + wantedBy = [ "multi-user.target" ]; + script = lib.concatStringsSep " " [ + "${depot.third_party.honk}/bin/honk" + "-datadir /var/lib/honk" + "-viewdir ${depot.third_party.honk.src}" + ]; + + serviceConfig = { + Restart = "always"; + DynamicUser = true; + StateDirectory = "honk"; + WorkingDirectory = "/var/lib/honk"; + }; + }; + # Provision a TLS certificate outside of nginx to avoid # nixpkgs#38144 security.acme = { -- cgit 1.4.1