add everything to motd

This commit is contained in:
2026-06-14 10:58:53 -05:00
parent 2c7e21f64d
commit 4b537c7fe8
4 changed files with 17 additions and 3 deletions
+6 -1
View File
@@ -4,15 +4,20 @@
lib,
...
}: let
service = "cloudflare-ddns";
cfg = config.homelab.ddns;
sec = config.sops.secrets;
in {
options.homelab.ddns = {
enable = lib.mkEnableOption "enables ddns with cloudflare";
motd = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = service;
};
};
config = lib.mkIf cfg.enable {
services.cloudflare-ddns = {
services.${service} = {
enable = true;
credentialsFile = sec."cloudflare/api_token".path;
domains = [