Create cloudflare-ddns.nix

This commit is contained in:
ediblerope 2026-02-15 06:22:17 +00:00 committed by GitHub
parent 1552d8c38c
commit 529e77ead6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,14 @@
#jellyfin.nix
{ config, pkgs, lib, ... }:
{
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
services.cloudflare-dyndns = {
enable = true;
apiTokenFile = "/var/secrets/cloudflare-token";
domains = [ "nordhammer.it" ]; # or subdomain.yourdomain.com
# Optional: specify which network interface to get IP from
# ipv4 = true; # default
# ipv6 = false; # default
};
};
}