summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorPavel Goran <me@pvgoran.name>2018-10-05 13:14:45 +0700
committerPavel Goran <me@pvgoran.name>2018-10-05 13:14:45 +0700
commit858b263bf0f9844d6924c0af4ffc690af2fb4496 (patch)
treeb318093f208eb2c3cfdf23ad24358588716b670e /nixos/modules/services/networking
parent89beaef64dae87eb31f3537d3b0921d7585c7ab6 (diff)
downloadnixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.tar
nixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.tar.gz
nixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.tar.bz2
nixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.tar.lz
nixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.tar.xz
nixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.tar.zst
nixlib-858b263bf0f9844d6924c0af4ffc690af2fb4496.zip
nixos: correct improper uses of mkEnableOption, clarify service descriptions
Several service definitions used `mkEnableOption` with text starting
with "Whether to", which produced funny option descriptions like
"Whether to enable Whether to run the rspamd daemon..".

This commit corrects this, and adds short descriptions of services
to affected service definitions.
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/pptpd.nix2
-rw-r--r--nixos/modules/services/networking/xl2tpd.nix2
-rw-r--r--nixos/modules/services/networking/xrdp.nix2
3 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/pptpd.nix b/nixos/modules/services/networking/pptpd.nix
index 56a612b91052..d8b9e8f8341a 100644
--- a/nixos/modules/services/networking/pptpd.nix
+++ b/nixos/modules/services/networking/pptpd.nix
@@ -5,7 +5,7 @@ with lib;
 {
   options = {
     services.pptpd = {
-      enable = mkEnableOption "Whether pptpd should be run on startup.";
+      enable = mkEnableOption "pptpd, the Point-to-Point Tunneling Protocol daemon";
 
       serverIp = mkOption {
         type        = types.string;
diff --git a/nixos/modules/services/networking/xl2tpd.nix b/nixos/modules/services/networking/xl2tpd.nix
index 46111a76af80..d0a3ed7bb5e0 100644
--- a/nixos/modules/services/networking/xl2tpd.nix
+++ b/nixos/modules/services/networking/xl2tpd.nix
@@ -5,7 +5,7 @@ with lib;
 {
   options = {
     services.xl2tpd = {
-      enable = mkEnableOption "Whether xl2tpd should be run on startup.";
+      enable = mkEnableOption "xl2tpd, the Layer 2 Tunnelling Protocol Daemon";
 
       serverIp = mkOption {
         type        = types.string;
diff --git a/nixos/modules/services/networking/xrdp.nix b/nixos/modules/services/networking/xrdp.nix
index 61f22a366a02..9ed3025e47d4 100644
--- a/nixos/modules/services/networking/xrdp.nix
+++ b/nixos/modules/services/networking/xrdp.nix
@@ -36,7 +36,7 @@ in
 
     services.xrdp = {
 
-      enable = mkEnableOption "Whether xrdp should be run on startup.";
+      enable = mkEnableOption "xrdp, the Remote Desktop Protocol server";
 
       package = mkOption {
         type = types.package;