mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
23 lines
522 B
Nix
23 lines
522 B
Nix
{ config, lib, pkgs, user, ... }:
|
|
{
|
|
networking.firewall.allowedTCPPorts = [ 5232 ];
|
|
networking.firewall.allowedUDPPorts = [ 5232 ];
|
|
|
|
services.radicale = {
|
|
enable = true;
|
|
settings = {
|
|
server = {
|
|
hosts = ["0.0.0.0:5232" "[::]:5232"];
|
|
};
|
|
auth = {
|
|
type = "htpasswd";
|
|
htpasswd_filename = "/run/secrets/radicale/users";
|
|
htpasswd_encryption = "plain";
|
|
};
|
|
storage = {
|
|
filesystem_folder = "/var/lib/radicale/collections";
|
|
};
|
|
};
|
|
};
|
|
}
|