add radicale
This commit is contained in:
parent
25b07c55bb
commit
495ea8491b
@ -41,6 +41,7 @@ in {
|
|||||||
nixosProfiles.attic
|
nixosProfiles.attic
|
||||||
nixosProfiles.restic-server
|
nixosProfiles.restic-server
|
||||||
nixosProfiles.outline
|
nixosProfiles.outline
|
||||||
|
nixosProfiles.radicale
|
||||||
|
|
||||||
(import nixosProfiles.blocky {
|
(import nixosProfiles.blocky {
|
||||||
inherit config;
|
inherit config;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"bathist.ataraxiadev.com" = "bathist.ataraxiadev.com";
|
"bathist.ataraxiadev.com" = "bathist.ataraxiadev.com";
|
||||||
"browser.ataraxiadev.com" = "ataraxiadev.com";
|
"browser.ataraxiadev.com" = "ataraxiadev.com";
|
||||||
"cache.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";
|
"cocalc.ataraxiadev.com" = "ataraxiadev.com";
|
||||||
"code.ataraxiadev.com" = "ataraxiadev.com";
|
"code.ataraxiadev.com" = "ataraxiadev.com";
|
||||||
"docs.ataraxiadev.com" = "ataraxiadev.com";
|
"docs.ataraxiadev.com" = "ataraxiadev.com";
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{ name = "bathist.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
|
{ name = "bathist.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
|
||||||
{ name = "browser.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 = "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 = "cocalc.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
|
||||||
{ name = "code.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"; }
|
{ 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 = "bathist.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
|
||||||
{ name = "browser.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 = "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 = "cocalc.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
|
||||||
{ name = "code.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"; }
|
{ name = "dimension.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
|
||||||
|
@ -78,9 +78,9 @@ in {
|
|||||||
"openbooks.ataraxiadev.com"
|
"openbooks.ataraxiadev.com"
|
||||||
"cache.ataraxiadev.com"
|
"cache.ataraxiadev.com"
|
||||||
"docs.ataraxiadev.com"
|
"docs.ataraxiadev.com"
|
||||||
|
"cal.ataraxiadev.com"
|
||||||
|
|
||||||
"matrix.ataraxiadev.com"
|
"matrix.ataraxiadev.com"
|
||||||
"cinny.ataraxiadev.com"
|
|
||||||
"dimension.ataraxiadev.com"
|
"dimension.ataraxiadev.com"
|
||||||
"stats.ataraxiadev.com"
|
"stats.ataraxiadev.com"
|
||||||
"element.ataraxiadev.com"
|
"element.ataraxiadev.com"
|
||||||
@ -149,7 +149,6 @@ in {
|
|||||||
"matrix:443" = {
|
"matrix:443" = {
|
||||||
serverAliases = [
|
serverAliases = [
|
||||||
"matrix.ataraxiadev.com"
|
"matrix.ataraxiadev.com"
|
||||||
"cinny.ataraxiadev.com"
|
|
||||||
"dimension.ataraxiadev.com"
|
"dimension.ataraxiadev.com"
|
||||||
"element.ataraxiadev.com"
|
"element.ataraxiadev.com"
|
||||||
"stats.ataraxiadev.com"
|
"stats.ataraxiadev.com"
|
||||||
@ -204,6 +203,12 @@ in {
|
|||||||
'' + proxySettings;
|
'' + proxySettings;
|
||||||
};
|
};
|
||||||
} // default;
|
} // default;
|
||||||
|
"cal.ataraxiadev.com" = {
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:5232";
|
||||||
|
extraConfig = proxySettings;
|
||||||
|
};
|
||||||
|
} // default;
|
||||||
"vw.ataraxiadev.com" = {
|
"vw.ataraxiadev.com" = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:8812";
|
proxyPass = "http://127.0.0.1:8812";
|
||||||
|
25
profiles/servers/radicale.nix
Normal file
25
profiles/servers/radicale.nix
Normal 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" ];
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user