fix: run updns-client with new user

This commit is contained in:
2025-04-29 10:23:35 +02:00
parent c5a1e13b94
commit f5913101f0

View File

@@ -5,6 +5,12 @@
jq jq
]; ];
users.users.updns-client = {
isSystemUser = true;
group = "updns-client";
};
users.groups.updns-client = { };
sops.secrets.updns-client = { sops.secrets.updns-client = {
owner = "updns-client"; owner = "updns-client";
restartUnits = [ "updns-client.service" ]; restartUnits = [ "updns-client.service" ];
@@ -63,6 +69,7 @@
### 5) Define the oneshot service ### 5) Define the oneshot service
systemd.services.updns-client = lib.mkIf config.cloonar-assistant.updns-client.enable { systemd.services.updns-client = lib.mkIf config.cloonar-assistant.updns-client.enable {
user = "updns-client";
description = "Check external IP and notify API on change"; description = "Check external IP and notify API on change";
after = [ "network-online.target" ]; after = [ "network-online.target" ];
wants = [ "network-online.target" ]; wants = [ "network-online.target" ];