install radicale

This commit is contained in:
wi11-holdsworth 2025-08-05 12:12:19 +10:00
parent 293305263f
commit e8fb465e8c
4 changed files with 53 additions and 1 deletions

View file

@ -17,6 +17,7 @@ in
paperless.enable = true; paperless.enable = true;
prowlarr.enable = true; prowlarr.enable = true;
radarr.enable = true; radarr.enable = true;
radicale.enable = true;
sonarr.enable = true; sonarr.enable = true;
qbittorrent.enable = true; qbittorrent.enable = true;
vaultwarden.enable = true; vaultwarden.enable = true;

View file

@ -0,0 +1,50 @@
{ config, lib, ... }:
let
feature = "radicale";
port = "5003";
in
{
config = lib.mkIf config.${feature}.enable {
services = {
# service
radicale = {
enable = true;
settings = {
server = {
hosts = [
"0.0.0.0:${port}"
"[::]:${port}"
];
};
auth = {
type = "htpasswd";
htpasswd_filename = config.age.secrets."radicale".path;
htpasswd_encryption = "plain";
};
storage = {
filesystem_folder = "/srv/radicale";
};
};
};
# reverse proxy
nginx = {
virtualHosts."${feature}.fi33.buzz" = {
forceSSL = true;
useACMEHost = "fi33.buzz";
locations."/" = {
proxyPass = "http://localhost:${port}";
# proxyWebsockets = true;
};
};
};
};
age.secrets."radicale" = {
file = ../../../secrets/radicale.age;
owner = "radicale";
};
};
options.${feature}.enable = lib.mkEnableOption "enables ${feature}";
}

BIN
secrets/radicale.age Normal file

Binary file not shown.

View file

@ -21,6 +21,7 @@ in
"porkbun-api.age".publicKeys = users; "porkbun-api.age".publicKeys = users;
"prowlarr.age".publicKeys = users; "prowlarr.age".publicKeys = users;
"radarr.age".publicKeys = users; "radarr.age".publicKeys = users;
"radicale.age".publicKeys = users;
"sonarr.age".publicKeys = users; "sonarr.age".publicKeys = users;
"vaultwarden-admin.age".publicKeys = users; "vaultwarden-admin.age".publicKeys = users;
} }