26 lines
681 B
Nix
Raw Normal View History

2024-01-22 16:44:51 +03:00
{ config, inputs, ... }: {
sops.secrets.radicale-htpasswd = {
sopsFile = inputs.self.secretsDir + /home-hypervisor/radicale.yaml;
2023-07-30 03:30:49 +03:00
owner = "radicale";
2024-01-22 16:44:51 +03:00
restartUnits = [ "radicale.service" ];
2023-07-30 03:30:49 +03:00
};
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "127.0.0.1:5232" ];
};
auth = {
type = "htpasswd";
2024-01-22 16:44:51 +03:00
htpasswd_filename = config.sops.secrets.radicale-htpasswd.path;
2023-07-30 03:30:49 +03:00
htpasswd_encryption = "bcrypt";
};
storage = {
filesystem_folder = "/var/lib/radicale/collections";
};
web.type = "internal";
};
};
persist.state.directories = [ "/var/lib/radicale" ];
}