From a0aeac833b96e6abeebd4c7623df737d0046cf57 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 23 Nov 2021 23:09:03 +0100 Subject: [PATCH] Change password with passwordFile in ddclient --- modules/networking.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/networking.nix b/modules/networking.nix index 2252507..512abec 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -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