about summary refs log tree commit diff
path: root/machines/srv3/noip.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-02-02 11:22:45 +0100
committerPatryk Niedźwiedziński <patryk@niedzwiedzinski.cyou>2024-02-02 11:22:45 +0100
commit11ff8bf741b10ebe38f7c1107912d747c619a2c4 (patch)
treed75b70313a18c2e0bc8853643b1cc034d40080dd /machines/srv3/noip.nix
parent137d815df2cf60bff67ed8f1c0be1c81fe4661b0 (diff)
downloaddots-11ff8bf741b10ebe38f7c1107912d747c619a2c4.tar.gz
dots-11ff8bf741b10ebe38f7c1107912d747c619a2c4.zip
srv3 init
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";
+      };
+    };
+  };
+}