Add secrets and cleanup

This commit is contained in:
2026-07-07 09:25:07 +01:00
parent b5c495a094
commit 822f654d6a
9 changed files with 75 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#!@bash@/bin/bash
source /run/secrets/main.env
source /run/secrets.env
cache=/var/lib/cloudflare-ddns/old_ip
IP=$(@curl@/bin/curl -s 'https://api.ipify.org')
+1 -2
View File
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
let
script = pkgs.replaceVars ./ddns.sh {
@@ -8,7 +8,6 @@ let
};
cloudflare-ddns = pkgs.writeShellScriptBin "cloudflare-ddns" (builtins.readFile script);
in
{
environment.systemPackages = [ cloudflare-ddns ];