Home Explore Blog Models CI



nixpkgs

1st chunk of `nixos/modules/services/web-apps/honk.md`
765f0414d92d745a9be8cf5cc37a30822167f7b775b7e21300000001000001f2
# Honk {#module-services-honk}

With Honk on NixOS you can quickly configure a complete ActivityPub server with
minimal setup and support costs.

## Basic usage {#module-services-honk-basic-usage}

A minimal configuration looks like this:

```nix
{
  services.honk = {
    enable = true;
    host = "0.0.0.0";
    port = 8080;
    username = "username";
    passwordFile = "/etc/honk/password.txt";
    servername = "honk.example.com";
  };

  networking.firewall.allowedTCPPorts = [ 8080 ];
}
```

Title: Honk ActivityPub Server Configuration on NixOS
Summary
This chunk introduces Honk, an ActivityPub server designed for easy and cost-effective configuration on NixOS. It provides a basic Nix configuration example, illustrating how to enable the `services.honk` module and set essential parameters like host, port, username, password file path, and server name. Additionally, it shows how to configure the NixOS firewall to allow traffic on the specified Honk port.