server: net: use nixpkgs' ddns-go

This commit is contained in:
2026-08-22 22:50:06 +08:00
parent 7cdc66d415
commit 6e7bf06d97
+2 -19
View File
@@ -178,29 +178,12 @@
}; };
my.services.frp.webServers = [ "oidc.imxyy.top" ]; my.services.frp.webServers = [ "oidc.imxyy.top" ];
systemd.services.ddns-go = systemd.services.ddns-go = {
let
version = "6.6.7";
ddns-go = pkgs.buildGoModule {
inherit version;
pname = "ddns-go";
src = pkgs.fetchFromGitHub {
owner = "jeessy2";
repo = "ddns-go";
rev = "v${version}";
hash = "sha256-Ejoe6e9GFhHxQ9oIBDgDRQW9Xx1XZK+qSAXiRXLdn+c=";
};
meta.mainProgram = "ddns-go";
vendorHash = "sha256-XZii7gV3DmTunYyGYzt5xXhv/VpTPIoYKbW4LnmlAgs=";
doCheck = false;
};
in
{
description = "Go Dynamic DNS"; description = "Go Dynamic DNS";
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
serviceConfig = { serviceConfig = {
ExecStart = "${lib.getExe ddns-go} -l :9876 -f 10 -cacheTimes 180 -c /var/lib/ddns-go/config.yaml"; ExecStart = "${lib.getExe pkgs.ddns-go} -l :9876 -f 10 -cacheTimes 180 -c /var/lib/ddns-go/config.yaml";
Restart = "always"; Restart = "always";
RestartSec = 120; RestartSec = 120;
}; };