about summary refs log tree commit diff
path: root/machines/srv3/noip.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/srv3/noip.nix')
-rw-r--r--machines/srv3/noip.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/machines/srv3/noip.nix b/machines/srv3/noip.nix
new file mode 100644
index 0000000..0ff7002
--- /dev/null
+++ b/machines/srv3/noip.nix
@@ -0,0 +1,17 @@
+{ pkgs, ... }:
+{
+  systemd = {
+    services.noip = {
+      enable = true;
+      wantedBy = [ "multi-user.target" ];
+      aliases = [ "noip2.service" ];
+      after = [ "network.target" "syslog.target" ];
+      serviceConfig = {
+        User = "root";
+        ExecStart = "${pkgs.noip}/bin/noip2 -c /etc/noip2.conf";
+        Restart = "always";
+        Type = "forking";
+      };
+    };
+  };
+}