From e6705c4d06428ea40eb073684d17750942c5cb9a Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
Date: Sun, 11 Feb 2024 15:11:06 +0000
Subject: [PATCH] rotuer: make domainName configurable

---
 examples/rotuer.nix | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/examples/rotuer.nix b/examples/rotuer.nix
index 7b998338..c690c898 100644
--- a/examples/rotuer.nix
+++ b/examples/rotuer.nix
@@ -8,7 +8,10 @@
 
 { config, pkgs, lib, ... } :
 let
-  secrets = { firewallRules = {}; } // (import ./rotuer-secrets.nix);
+  secrets = {
+    domainName = "fake.liminix.org";
+    firewallRules = {};
+  } // (import ./rotuer-secrets.nix);
   inherit (pkgs.liminix.services) oneshot longrun bundle;
   inherit (pkgs) serviceFns;
   svc = config.system.service;
@@ -121,7 +124,7 @@ in rec {
       # not putting my actual MAC addresses in a public git repo ...
       hosts = { } // lib.optionalAttrs (builtins.pathExists ./static-leases.nix) (import ./static-leases.nix);
 
-      domain = "fake.liminix.org";
+      domain = secrets.domainName;
     };
 
   services.wan = svc.pppoe.build {