38 lines
699 B
Nix
38 lines
699 B
Nix
|
|
{ config, pkgs, lib, ... }:
|
||
|
|
|
||
|
|
{
|
||
|
|
services.radicale = {
|
||
|
|
enable = true;
|
||
|
|
|
||
|
|
# Configuration settings
|
||
|
|
settings = {
|
||
|
|
server = {
|
||
|
|
hosts = [ "127.0.0.1:5232" "[::1]:5232" ];
|
||
|
|
};
|
||
|
|
|
||
|
|
# Authentication (you can customize this)
|
||
|
|
auth = {
|
||
|
|
type = "htpasswd";
|
||
|
|
htpasswd_filename = "/srv/radicale/users";
|
||
|
|
htpasswd_encryption = "bcrypt";
|
||
|
|
};
|
||
|
|
|
||
|
|
# Storage configuration
|
||
|
|
storage = {
|
||
|
|
filesystem_folder = "/srv/radicale/collections";
|
||
|
|
};
|
||
|
|
|
||
|
|
# Logging
|
||
|
|
logging = {
|
||
|
|
level = "info";
|
||
|
|
};
|
||
|
|
|
||
|
|
rights = {
|
||
|
|
type = "from_file";
|
||
|
|
file = "/srv/radicale/rights";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
};
|
||
|
|
}
|