add cloudflare service

This commit is contained in:
Osman Faruk Bayram 2025-03-29 16:47:02 +03:00
parent 528f6af517
commit b9289d9c31
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{
lib,
config,
...
}: {
options = {
myModules.enableCloudflareDyndns = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable a service to push my public IP address to my Cloudflare domain.";
};
};
config = lib.mkMerge [
(lib.mkIf config.myModules.enableCloudflareDyndns {
services.cloudflare-dyndns = {
enable = true;
};
})
];
}

View file

@ -1,6 +1,7 @@
{
imports = [
./caddy.nix
./cloudflare-dyndns.nix
./ollama.nix
./forgejo.nix
./jellyfin.nix