nixos/smokeping: Add a PoC for using networking.fqdn

Changed files
+4 -1
nixos
modules
services
networking
tests
+3 -1
nixos/modules/services/networking/smokeping.nix
···
};
hostName = mkOption {
type = types.str;
-
default = config.networking.hostName;
+
default = config.networking.fqdn;
+
defaultText = "\${config.networking.fqdn}";
example = "somewhere.example.com";
description = "DNS name for the urls generated in the cgi.";
};
···
ownerEmail = mkOption {
type = types.str;
default = "no-reply@${cfg.hostName}";
+
defaultText = "no-reply@\${hostName}";
example = "no-reply@yourdomain.com";
description = "Email contact for owner";
};
+1
nixos/tests/smokeping.nix
···
sm =
{ ... }:
{
+
networking.domain = "example.com"; # FQDN: sm.example.com
services.smokeping = {
enable = true;
port = 8081;