@@ -124,7 +124,8 @@ in
124124 };
125125 hostName = mkOption {
126126 type = types.str;
127− default = config.networking.hostName;
127+ default = config.networking.fqdn;
128+ defaultText = "\${config.networking.fqdn}";
128129 example = "somewhere.example.com";
129130 description = "DNS name for the urls generated in the cgi.";
130131 };
@@ -156,6 +157,7 @@ in
156157 ownerEmail = mkOption {
157158 type = types.str;
158159 default = "no-reply@${cfg.hostName}";
160+ defaultText = "no-reply@\${hostName}";
159161 example = "no-reply@yourdomain.com";
160162 description = "Email contact for owner";
161163 };
@@ -239,18 +241,18 @@ in
239241 targetConfig = mkOption {
240242 type = types.lines;
241243 default = ''
242− probe = FPing
243− menu = Top
244− title = Network Latency Grapher
245− remark = Welcome to the SmokePing website of xxx Company. \
246− Here you will learn all about the latency of our network.
247− + Local
248− menu = Local
249− title = Local Network
250− ++ LocalMachine
251− menu = Local Machine
252− title = This host
253− host = localhost
244+ probe = FPing
245+ menu = Top
246+ title = Network Latency Grapher
247+ remark = Welcome to the SmokePing website of xxx Company. \
248+ Here you will learn all about the latency of our network.
249+ + Local
250+ menu = Local
251+ title = Local Network
252+ ++ LocalMachine
253+ menu = Local Machine
254+ title = This host
255+ host = localhost
254256 '';
255257 description = "Target configuration";
256258 };