From cdea9f3b7bcb214dd47437bea2960a5659f51897 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 9 Dec 2019 05:57:30 +0100 Subject: [PATCH] Move duckdns secret to file Move duckdns secret to file Replace 'fromTOML' with 'readFile' --- modules/networking.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/networking.nix b/modules/networking.nix index 87ab87a..5650aad 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -1,4 +1,8 @@ { config, pkgs, lib, ... }: + + let password = builtins.readFile /var/lib/ddclient/token; + + in { environment.systemPackages = with pkgs; [ @@ -11,7 +15,7 @@ quiet = true; protocol = "duckdns"; domains = [ "coolneng.duckdns.org" ]; - password = "7eebec3b-945a-4ab5-a6d4-e3a8e2eee4eb"; + inherit password; }; # Firewall configuration