From 4ecb39719e21e62716a268d4647b3ee924aab66a Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 6 Oct 2021 11:47:00 +0200 Subject: Fix noip service --- machines/srv1/configuration.nix | 8 ++++---- 1 file 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 = { -- cgit 1.4.1