Add Radicale

This commit is contained in:
Trevor Vallender 2023-09-27 19:40:04 +01:00
parent 1cb4dd1813
commit 20b37c21e9
3 changed files with 31 additions and 0 deletions

View File

@ -10,6 +10,7 @@
../shared/services/gitweb.nix ../shared/services/gitweb.nix
../shared/services/miniflux.nix ../shared/services/miniflux.nix
../shared/services/nginx.nix ../shared/services/nginx.nix
../shared/services/radicale.nix
]; ];
networking = { networking = {
@ -27,6 +28,7 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
apacheHttpd # Because we need htpasswd for Radicale, annoyingly
cifs-utils # To mount Storage Box cifs-utils # To mount Storage Box
git git
git-crypt git-crypt

View File

@ -34,6 +34,14 @@
proxyPass = "http://127.0.0.1:8080"; proxyPass = "http://127.0.0.1:8080";
}; };
}; };
virtualHosts."cal.tsvallender.co.uk" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:5232";
};
};
}; };
security.acme = { security.acme = {

View File

@ -0,0 +1,21 @@
{ config, pkgs, inputs, ... }:
{
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "0.0.0.0:5232" "[::]:5232" ];
};
auth = {
type = "htpasswd";
htpasswd_filename = "/var/lib/radicale/users";
htpasswd_encryption = "bcrypt";
};
storage = {
filesystem_folder = "/var/lib/radicale/collections";
};
};
};
}