nixos/smokeping: Add a PoC for using networking.fqdn
This commit is contained in:
parent
971f0b45ef
commit
87fb5d381f
@ -124,7 +124,8 @@ in
|
|||||||
};
|
};
|
||||||
hostName = mkOption {
|
hostName = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = config.networking.hostName;
|
default = config.networking.fqdn;
|
||||||
|
defaultText = "\${config.networking.fqdn}";
|
||||||
example = "somewhere.example.com";
|
example = "somewhere.example.com";
|
||||||
description = "DNS name for the urls generated in the cgi.";
|
description = "DNS name for the urls generated in the cgi.";
|
||||||
};
|
};
|
||||||
@ -156,6 +157,7 @@ in
|
|||||||
ownerEmail = mkOption {
|
ownerEmail = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "no-reply@${cfg.hostName}";
|
default = "no-reply@${cfg.hostName}";
|
||||||
|
defaultText = "no-reply@\${hostName}";
|
||||||
example = "no-reply@yourdomain.com";
|
example = "no-reply@yourdomain.com";
|
||||||
description = "Email contact for owner";
|
description = "Email contact for owner";
|
||||||
};
|
};
|
||||||
|
@ -8,6 +8,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
|
|||||||
sm =
|
sm =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
networking.domain = "example.com"; # FQDN: sm.example.com
|
||||||
services.smokeping = {
|
services.smokeping = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 8081;
|
port = 8081;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user