about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-10-06 11:47:00 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-10-06 11:47:00 +0200
commit4ecb39719e21e62716a268d4647b3ee924aab66a (patch)
tree42f7468f40ef18059652335f0405f5307dfdc41c
parent34d8490a72aa6eff548ac2d00c06dc328b3776bb (diff)
downloaddots-4ecb39719e21e62716a268d4647b3ee924aab66a.tar.gz
dots-4ecb39719e21e62716a268d4647b3ee924aab66a.zip
Fix noip service
-rw-r--r--machines/srv1/configuration.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index fb74773..9a95092 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -238,13 +238,13 @@ 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
-      '';
+      enable = true;
+      after = [ "network.target" "syslog.target" ];
       serviceConfig = {
         User = "root";
+	ExecStart = "${pkgs.noip}/bin/noip2 -c /etc/noip2.conf";
 	Restart = "always";
+	Type = "forking";
       };
     };
     services.git-fetch = {