feat: install radicale for caldav and carddav support
This commit is contained in:
parent
078c58831f
commit
b834611bcb
3 changed files with 50 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
"prowlarr"
|
"prowlarr"
|
||||||
"qbittorrent"
|
"qbittorrent"
|
||||||
"radarr"
|
"radarr"
|
||||||
|
"radicale"
|
||||||
"sonarr"
|
"sonarr"
|
||||||
"syncthing"
|
"syncthing"
|
||||||
"vaultwarden"
|
"vaultwarden"
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,13 @@ in
|
||||||
"href" = "https://ntfy-sh.fi33.buzz/";
|
"href" = "https://ntfy-sh.fi33.buzz/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
"Radicale" = {
|
||||||
|
"description" = "CalDAV/CardDAV service";
|
||||||
|
"icon" = "radicale.svg";
|
||||||
|
"href" = "https://radicale.fi33.buzz";
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
"Syncthing" = {
|
"Syncthing" = {
|
||||||
"description" = "Decentralised file synchronisation";
|
"description" = "Decentralised file synchronisation";
|
||||||
|
|
|
||||||
42
modules/nixos/features/radicale.nix
Normal file
42
modules/nixos/features/radicale.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
port = "5003";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nginx.virtualHosts."radicale.fi33.buzz" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "fi33.buzz";
|
||||||
|
locations."/".proxyPass = "http://localhost:${port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# secrets
|
||||||
|
age.secrets."radicale" = {
|
||||||
|
file = ../../../secrets/radicale.age;
|
||||||
|
owner = "radicale";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue