summaryrefslogtreecommitdiff
path: root/modules/ddns.nix
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-10-28 08:05:42 -0300
committerLeonardo Santiago <[email protected]>2024-10-28 08:05:42 -0300
commit4842e81317e9815540d559d689be51d13191e1e4 (patch)
treed1b97123d3aaea731544e238d89af3e1ccfe9d29 /modules/ddns.nix
parentfbbf34c7b6ba70a718abf655c0711b6ac5ff20e8 (diff)
change files to web-services in order to share some code.
Diffstat (limited to 'modules/ddns.nix')
-rw-r--r--modules/ddns.nix27
1 files changed, 0 insertions, 27 deletions
diff --git a/modules/ddns.nix b/modules/ddns.nix
deleted file mode 100644
index 3a3196e..0000000
--- a/modules/ddns.nix
+++ /dev/null
@@ -1,27 +0,0 @@
-{ config, lib, ...}: with lib; {
- options.santi-modules.services.ddns.enable = mkEnableOption "Enable ddns service";
- config = mkIf config.santi-modules.services.ddns.enable {
- networking.enableIPv6 = true;
- services.cloudflared = {
- enable = true;
- tunnels.iori = {
- default = "http_status:404";
- credentialsFile = "/var/lib/cloudflared/iori.json";
- ingress = {
- "santi.net.br" = "http://localhost:80";
- };
- };
- };
- services.inadyn = {
- enable = true;
- user = "leonardo";
- group = "users";
- settings.provider."cloudflare.com" = {
- hostname="santi.net.br";
- username="santi.net.br";
- proxied = false;
- include = config.age.secrets.cloudflare.path;
- };
- };
- };
-}