{ config, pkgs, lib, ... }: let cfg = config.services.domeneshop-updater; in { # auto domain update options = with lib; { services.domeneshop-updater.target = mkOption { type = types.str; #default = config.networking.fqdn; }; }; config = { systemd.services.domeneshop-updater = { description = "domene.shop dyndns domain updater"; wantedBy = [ "multi-user.target" ]; after = [ "network-online.target" ]; wants = [ "network-online.target" ]; serviceConfig = let prog = pkgs.writeShellApplication { name = "domeneshop-dyndns-updater.sh"; runtimeInputs = with pkgs; [ curl yq ]; text = '' test -s /var/lib/secrets/domeneshop.toml || { >&2 echo "ERROR: /var/lib/secrets/domeneshop.toml not found!" exit 1 } DOMENESHOP_TOKEN="$( tomlq