add basic radicale config

This commit is contained in:
Grigory Shipunov 2025-01-19 23:04:04 +00:00
parent c3253a88e6
commit edc0ae4062
2 changed files with 21 additions and 0 deletions

View file

@ -3,6 +3,9 @@ let
mac = "02:00:00:00:00:02"; mac = "02:00:00:00:00:02";
in in
{ {
imports = [
./radicale.nix
];
sops.defaultSopsFile = ./secrets.yaml; sops.defaultSopsFile = ./secrets.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];

View file

@ -0,0 +1,18 @@
{ ... }:
{
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "0.0.0.0:5232" "[::]:5232" ];
ssl = "False";
};
auth = {
type = "http_x_remote_user";
};
rights = {
type = "owner_only";
};
};
};
}