diff options
author | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-02-02 11:22:45 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <patryk@niedzwiedzinski.cyou> | 2024-02-02 11:22:45 +0100 |
commit | 11ff8bf741b10ebe38f7c1107912d747c619a2c4 (patch) | |
tree | d75b70313a18c2e0bc8853643b1cc034d40080dd /machines/srv3/noip.nix | |
parent | 137d815df2cf60bff67ed8f1c0be1c81fe4661b0 (diff) | |
download | dots-11ff8bf741b10ebe38f7c1107912d747c619a2c4.tar.gz dots-11ff8bf741b10ebe38f7c1107912d747c619a2c4.zip |
srv3 init
Diffstat (limited to 'machines/srv3/noip.nix')
-rw-r--r-- | machines/srv3/noip.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/machines/srv3/noip.nix b/machines/srv3/noip.nix new file mode 100644 index 0000000..0ff7002 --- /dev/null +++ b/machines/srv3/noip.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + systemd = { + services.noip = { + enable = true; + wantedBy = [ "multi-user.target" ]; + aliases = [ "noip2.service" ]; + after = [ "network.target" "syslog.target" ]; + serviceConfig = { + User = "root"; + ExecStart = "${pkgs.noip}/bin/noip2 -c /etc/noip2.conf"; + Restart = "always"; + Type = "forking"; + }; + }; + }; +} |