git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/smokeping: Add a PoC for using networking.fqdn
commit87fb5d381f13f2e7cce281d8f494cd1fb44ba5b5 authorMichael Weiss <dev.primeos@gmail.com> dateSun 17 Jan 2021, 20:42 (6 years ago) parent971f0b4
2 files changed+4−1
nixos/modules/services/networking/smokeping.nix+3−1 nixos/tests/smokeping.nix+1
nixos/modules/services/networking/smokeping.nix+3−1
@@ -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 };
nixos/tests/smokeping.nix+1
@@ -8,6 +8,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
88 sm =
99 { ... }:
1010 {
11+ networking.domain = "example.com"; # FQDN: sm.example.com
1112 services.smokeping = {
1213 enable = true;
1314 port = 8081;