diff options
author | Leonardo Santiago <[email protected]> | 2024-09-12 21:44:46 -0300 |
---|---|---|
committer | Leonardo Santiago <[email protected]> | 2024-09-12 23:20:51 -0300 |
commit | 62100c9265a4de389d1ea8060cbddddacde161a7 (patch) | |
tree | 811ca1c5803ccdb2670f0c239214bc0dc30f57c7 /modules/ddns.nix | |
parent | f9ddec7952709d7b5d5d79deadca07c573510d49 (diff) |
split users/leonardo.nix into modules with options
in order to be able to deploy just a few of those to iori.nix
Diffstat (limited to 'modules/ddns.nix')
-rw-r--r-- | modules/ddns.nix | 16 |
1 files changed, 16 insertions, 0 deletions
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; + }; + }; + }; +} |