add cloudflare service
This commit is contained in:
parent
528f6af517
commit
b9289d9c31
2 changed files with 22 additions and 0 deletions
21
modules/services/cloudflare-dyndns.nix
Normal file
21
modules/services/cloudflare-dyndns.nix
Normal 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;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./caddy.nix
|
||||
./cloudflare-dyndns.nix
|
||||
./ollama.nix
|
||||
./forgejo.nix
|
||||
./jellyfin.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue