Change password with passwordFile in ddclient

This commit is contained in:
coolneng 2021-11-23 23:09:03 +01:00
parent f8dda2a8f7
commit a0aeac833b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,6 @@
{ config, pkgs, lib, ... }:
let password = builtins.readFile /var/keys/ddclient;
in {
{
# Assign a static IP
networking = {
hostName = "zion";
@ -41,7 +39,7 @@ in {
quiet = true;
protocol = "duckdns";
domains = [ "coolneng.duckdns.org" ];
inherit password;
passwordFile = builtins.readFile /var/keys/ddclient;
};
# Firewall configuration