about summary refs log tree commit diff
path: root/machines/srv1
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-10-06 10:14:33 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-10-06 10:15:00 +0200
commit34d8490a72aa6eff548ac2d00c06dc328b3776bb (patch)
tree40efd6d2b71706adf320a4682fd087e9ac081bc9 /machines/srv1
parent843a0baa38ad2f321546e383ba423f9b9818e46a (diff)
downloaddots-34d8490a72aa6eff548ac2d00c06dc328b3776bb.tar.gz
dots-34d8490a72aa6eff548ac2d00c06dc328b3776bb.zip
Noip service
Diffstat (limited to 'machines/srv1')
-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