Radicale: Difference between revisions

From NixOS Wiki
imported>Exyi
Added basic info about Radicale
 
imported>Garbas
mNo edit summary
Line 40: Line 40:
== See also ==
== See also ==
* [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/radicale.nix Source code of the service]
* [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/radicale.nix Source code of the service]
* [https://nixos.org/nixos/options.html#services.radicale List of Radicale options supported by NixOS]
* [https://search.nixos.org/options/?query=services.radicale List of Radicale options supported by NixOS]

Revision as of 21:59, 24 September 2020

Radicale is a Free and Open-Source CalDAV (calendars, todo-lists) and CardDAV (contacts) Server. For more information about Radicale itself, see https://radicale.org/

This basic configuration will run the server. Note that you might want to allow the port (5232 in this case) on you firewall

services.radicale = {
    enable = true;
    config =
        ''
        [server]
        # Bind all interfaces on port 5232 
        hosts = 0.0.0.0:5232
        ''
};

The config is standard Radicale configuration, see https://radicale.org/configuration/

Authentication

The default authentication mode is None which just allows all usernames and passwords. Other option is to use an Apache htpasswd file for authentication.

services.radicale = {
    enable = true;
    config =
        ''
        [server]
        hosts = 0.0.0.0:5232

        [auth]
        type = htpasswd
        htpasswd_filename = /path/to/htpasswd/file/radicale_users
        # hash function used for passwords. May be `plain` if you don't want to hash the passwords
        htpasswd_encryption = bcrypt
        '';
};

See also