about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--machines/srv1/configuration.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index fe6ade0..fb74773 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -109,7 +109,6 @@ in
     nvim lm_sensors
     mirror
     newrepo
-    noip
   ];
 
   services.openssh.enable = true;
@@ -238,6 +237,16 @@ in
 
   systemd = {
     services.molly-brown.serviceConfig.SupplementaryGroups = [ config.security.acme.certs."niedzwiedzinski.cyou".group ];
+    services.noip = {
+      script = ''
+        #!/bin/sh
+	${pkgs.noip}/bin/noip2 -c /etc/noip2.conf
+      '';
+      serviceConfig = {
+        User = "root";
+	Restart = "always";
+      };
+    };
     services.git-fetch = {
       script = ''
         #!/bin/sh