From f9537c2829616f08279fca33810263034a55a448 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Thu, 1 May 2025 14:35:36 +0200 Subject: [PATCH] fix --- deemz.org/configuration.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deemz.org/configuration.nix b/deemz.org/configuration.nix index 0285402..8dc57c3 100644 --- a/deemz.org/configuration.nix +++ b/deemz.org/configuration.nix @@ -116,6 +116,8 @@ let secrets = import ../secrets.nix; in networking.hostName = "seedbox"; # Define your hostname. + networking.domain = "deemz.org"; + networking.fqdn = "deemz.org"; networking.useDHCP = false; networking.interfaces.enp1s0 = { useDHCP = false; @@ -184,7 +186,7 @@ let secrets = import ../secrets.nix; in enable = true; systemCronJobs = [ # Update DuckDNS - use 'journalctl -e' to see logged output (should log 'OK' every 5 minutes) - "*/5 * * * * duckdns curl 'https://www.duckdns.org/update?domains=mstro&token=${duckdns-token}&ip=' | systemd-cat -t 'duckdns'" + "*/5 * * * * duckdns curl 'https://www.duckdns.org/update?domains=mstro&token=${secrets.duckdns_token}&ip=' | systemd-cat -t 'duckdns'" # Update CloudFlare DNS "*/1 * * * * cloudflare-dns curl --request PUT --url https://api.cloudflare.com/client/v4/zones/${secrets.cloudflare_zone_id}/dns_records/${secrets.cloudflare_dns_record_id} --header 'Content-Type: application/json' --header 'Authorization: Bearer ${secrets.cloudflare_api_token}' --data '{ \"comment\": \"Domain verification record\", \"name\": \"@\", \"proxied\": false, \"settings\": {}, \"tags\": [], \"ttl\": 60, \"content\": \"'$(curl https://ipinfo.io/ip)'\", \"type\": \"A\" }' | jq -r '.success' | systemd-cat -t 'cloudflare-dns'" ]; @@ -339,4 +341,4 @@ let secrets = import ../secrets.nix; in # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "21.11"; # Did you read the comment? -} \ No newline at end of file +}