From 62100c9265a4de389d1ea8060cbddddacde161a7 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Thu, 12 Sep 2024 21:44:46 -0300 Subject: split users/leonardo.nix into modules with options in order to be able to deploy just a few of those to iori.nix --- modules/ddns.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/ddns.nix (limited to 'modules/ddns.nix') diff --git a/modules/ddns.nix b/modules/ddns.nix new file mode 100644 index 0000000..53dcb0f --- /dev/null +++ b/modules/ddns.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ...}: with lib; { + options.santi-modules.services.ddns.enable = mkEnableOption "Enable ddns service"; + config = mkIf config.santi-modules.services.ddns.enable { + 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; + }; + }; + }; +} -- cgit v1.2.3