summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorJakub Stachurski <jakub@wilkuu.xyz>2026-06-09 15:08:54 +0200
committerJakub Stachurski <jakub@wilkuu.xyz>2026-06-09 15:08:54 +0200
commitd033778fca80f564c8897df4b79664245a95be84 (patch)
treed36f359b42c8326f74a24312e8bbe29c546b8adf /hosts
parent898d1709a1aee731d037e8f8739bc9b72ef87b71 (diff)
feat: Desec dynamic DNS and DNS01 acme certs
This feature will allow for a more flexible DNS management through Desec as opposed to OXXA/Ferox.
Diffstat (limited to 'hosts')
-rw-r--r--hosts/omega-relay/default.nix28
1 files changed, 25 insertions, 3 deletions
diff --git a/hosts/omega-relay/default.nix b/hosts/omega-relay/default.nix
index 8c5bfbe..b1489a5 100644
--- a/hosts/omega-relay/default.nix
+++ b/hosts/omega-relay/default.nix
@@ -18,6 +18,7 @@
../../services/continuwuity.nix
../../services/bulwark.nix
../../services/mail2.nix
+ ../../services/ddns.nix
];
addons = {
@@ -39,18 +40,31 @@
chawan
];
+ sops.secrets."desec/token" = {
+ sopsFile = ../../secrets/${config.networking.hostName}/desec.yaml;
+ mode = "0440";
+ };
+
wilkuu.services =
let
isVM = config.addons.virtualisation.isTestVM;
in
{
+ desecDyn = {
+ enable = true;
+ domains."wilkuu.dedyn.io" = {
+ doWildcard = true;
+ enableDDNS = true;
+ enableACME = true;
+ };
+ tokenSopsName = "desec/token";
+ };
test_endpoint = {
enable = true;
domain = if isVM then "omega-relay.local" else "omega-relay.wilkuu.xyz";
doACME = !isVM;
port = 8080;
};
-
mail = {
enable = true;
startupMode = "normal";
@@ -64,8 +78,6 @@
extraConfig = [];
extraCreate = [];
};
-
-
bulwark = {
enable = true;
jmap_servers = [ "mail.wilkuu.xyz" ];
@@ -158,6 +170,16 @@
tryFiles = "$uri $uri/ =404";
};
};
+ virualHosts."wilkuu.dedyn.io" = {
+ enableACME = true;
+ forceSSL = true;
+ useACMEHost = "wilkuu.dedyn.io";
+ root = "/srv/www/wilkuu.dedyn.io/";
+ location."/" = {
+ index = "index.html";
+ tryFiles = "$uri $uri/ =404";
+ };
+ };
};
networking.hostName = "omega-relay";