Add secrets and cleanup
This commit is contained in:
@@ -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,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 ];
|
||||
|
||||
Reference in New Issue
Block a user