diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
index ad94fbe70711..fdff61133949 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml
@@ -204,6 +204,14 @@
services.snowflake-proxy.
+
+
+ r53-ddns,
+ a small tool to run your own DDNS service via AWS Route53.
+ Available as
+ services.r53-ddns.
+
+
ergochat, a modern
diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md
index 4bbd9010f953..1f0ee4d6f4a7 100644
--- a/nixos/doc/manual/release-notes/rl-2205.section.md
+++ b/nixos/doc/manual/release-notes/rl-2205.section.md
@@ -60,6 +60,8 @@ In addition to numerous new and upgraded packages, this release has the followin
- [snowflake-proxy](https://snowflake.torproject.org/), a system to defeat internet censorship. Available as [services.snowflake-proxy](options.html#opt-services.snowflake-proxy.enable).
+- [r53-ddns](https://github.com/fleaz/r53-ddns), a small tool to run your own DDNS service via AWS Route53. Available as [services.r53-ddns](options.html#opt-services.r53-ddns.enable).
+
- [ergochat](https://ergo.chat), a modern IRC with IRCv3 features. Available as [services.ergochat](options.html#opt-services.ergochat.enable).
- [PowerDNS-Admin](https://github.com/ngoduykhanh/PowerDNS-Admin), a web interface for the PowerDNS server. Available at [services.powerdns-admin](options.html#opt-services.powerdns-admin.enable).
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index d1cda0d84e96..56631e13f238 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -876,6 +876,7 @@
./services/networking/quassel.nix
./services/networking/quorum.nix
./services/networking/quicktun.nix
+ ./services/networking/r53-ddns.nix
./services/networking/radicale.nix
./services/networking/radvd.nix
./services/networking/rdnssd.nix
diff --git a/nixos/modules/services/networking/r53-ddns.nix b/nixos/modules/services/networking/r53-ddns.nix
new file mode 100644
index 000000000000..a8839762d530
--- /dev/null
+++ b/nixos/modules/services/networking/r53-ddns.nix
@@ -0,0 +1,72 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+let
+ cfg = config.services.r53-ddns;
+ pkg = pkgs.r53-ddns;
+in
+{
+ options = {
+ services.r53-ddns = {
+
+ enable = mkEnableOption "r53-ddyns";
+
+ interval = mkOption {
+ type = types.str;
+ default = "15min";
+ description = "How often to update the entry";
+ };
+
+ zoneID = mkOption {
+ type = types.str;
+ description = "The ID of your zone in Route53";
+ };
+
+ domain = mkOption {
+ type = types.str;
+ description = "The name of your domain in Route53";
+ };
+
+ hostname = mkOption {
+ type = types.str;
+ description = ''
+ Manually specify the hostname. Otherwise the tool will try to use the name
+ returned by the OS (Call to gethostname)
+ '';
+ };
+
+ environmentFile = mkOption {
+ type = types.str;
+ description = ''
+ File containing the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
+ in the format of an EnvironmentFile as described by systemd.exec(5)
+ '';
+ };
+
+ };
+ };
+
+ config = mkIf cfg.enable {
+
+ systemd.timers.r53-ddns = {
+ description = "r53-ddns timer";
+ wantedBy = [ "timers.target" ];
+ timerConfig = {
+ OnBootSec = cfg.interval;
+ OnUnitActiveSec = cfg.interval;
+ };
+ };
+
+ systemd.services.r53-ddns = {
+ description = "r53-ddns service";
+ serviceConfig = {
+ ExecStart = "${pkg}/bin/r53-ddns -zone-id ${cfg.zoneID} -domain ${cfg.domain}"
+ + lib.optionalString (cfg.hostname != null) " -hostname ${cfg.hostname}";
+ EnvironmentFile = "${cfg.environmentFile}";
+ DynamicUser = true;
+ };
+ };
+
+ };
+}