feat: install radicale for caldav and carddav support
This commit is contained in:
parent
078c58831f
commit
ea0b2ebbfd
3 changed files with 50 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
|||
"jellyfin"
|
||||
"lidarr"
|
||||
"miniflux"
|
||||
"radicale"
|
||||
"nginx"
|
||||
"ntfy-sh"
|
||||
"paperless"
|
||||
|
|
|
|||
|
|
@ -65,6 +65,13 @@ in
|
|||
"href" = "https://ntfy-sh.fi33.buzz/";
|
||||
};
|
||||
}
|
||||
{
|
||||
"Radicale" = {
|
||||
"description" = "CalDAV/CardDAV service";
|
||||
"icon" = "radicale.svg";
|
||||
"href" = "https://radicale.fi33.buzz";
|
||||
};
|
||||
}
|
||||
{
|
||||
"Syncthing" = {
|
||||
"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