Move duckdns secret to file

Move duckdns secret to file

Replace 'fromTOML' with 'readFile'
This commit is contained in:
coolneng 2019-12-09 05:57:30 +01:00
parent 427c0b3fb7
commit cdea9f3b7b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 1 deletions

View File

@ -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