add radicale

This commit is contained in:
Dmitriy Kholkin 2023-07-30 03:30:49 +03:00
parent 25b07c55bb
commit 495ea8491b
5 changed files with 36 additions and 5 deletions

View File

@ -41,6 +41,7 @@ in {
nixosProfiles.attic
nixosProfiles.restic-server
nixosProfiles.outline
nixosProfiles.radicale
(import nixosProfiles.blocky {
inherit config;

View File

@ -24,7 +24,7 @@
"bathist.ataraxiadev.com" = "bathist.ataraxiadev.com";
"browser.ataraxiadev.com" = "ataraxiadev.com";
"cache.ataraxiadev.com" = "ataraxiadev.com";
"cinny.ataraxiadev.com" = "matrix.ataraxiadev.com";
"cal.ataraxiadev.com" = "ataraxiadev.com";
"cocalc.ataraxiadev.com" = "ataraxiadev.com";
"code.ataraxiadev.com" = "ataraxiadev.com";
"docs.ataraxiadev.com" = "ataraxiadev.com";

View File

@ -6,7 +6,7 @@
{ name = "bathist.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "browser.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "cache.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "cinny.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "cal.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "cocalc.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "code.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "dimension.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
@ -50,7 +50,7 @@
{ name = "bathist.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "browser.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "cache.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "cinny.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "cal.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "cocalc.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "code.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "dimension.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }

View File

@ -78,9 +78,9 @@ in {
"openbooks.ataraxiadev.com"
"cache.ataraxiadev.com"
"docs.ataraxiadev.com"
"cal.ataraxiadev.com"
"matrix.ataraxiadev.com"
"cinny.ataraxiadev.com"
"dimension.ataraxiadev.com"
"stats.ataraxiadev.com"
"element.ataraxiadev.com"
@ -149,7 +149,6 @@ in {
"matrix:443" = {
serverAliases = [
"matrix.ataraxiadev.com"
"cinny.ataraxiadev.com"
"dimension.ataraxiadev.com"
"element.ataraxiadev.com"
"stats.ataraxiadev.com"
@ -204,6 +203,12 @@ in {
'' + proxySettings;
};
} // default;
"cal.ataraxiadev.com" = {
locations."/" = {
proxyPass = "http://127.0.0.1:5232";
extraConfig = proxySettings;
};
} // default;
"vw.ataraxiadev.com" = {
locations."/" = {
proxyPass = "http://127.0.0.1:8812";

View File

@ -0,0 +1,25 @@
{ config, pkgs, lib, ... }: {
secrets.radicale-htpasswd = {
owner = "radicale";
services = [ "radicale.service" ];
};
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "127.0.0.1:5232" ];
};
auth = {
type = "htpasswd";
htpasswd_filename = config.secrets.radicale-htpasswd.decrypted;
htpasswd_encryption = "bcrypt";
};
storage = {
filesystem_folder = "/var/lib/radicale/collections";
};
web.type = "internal";
};
};
persist.state.directories = [ "/var/lib/radicale" ];
}