From 34d8490a72aa6eff548ac2d00c06dc328b3776bb Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Wed, 6 Oct 2021 10:14:33 +0200 Subject: Noip service --- machines/srv1/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1