summaryrefslogtreecommitdiff
path: root/modules/ddns.nix
blob: 53dcb0f082a00610cc6fb5bec906982fde5d3e8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
      };
    };
  };
}