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