summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-03-04 14:51:13 +0300
committerNikolay Amiantov <ab@fmap.me>2016-03-04 14:51:28 +0300
commit26bf9b28d87ea505e7bfd27d79d0b1d482b8342b (patch)
treee8baf08a26b75d021cf1fba218c3c5e85905a38d /nixos
parent1e51364dd585c2cbc8b1a33b98965feb4ca066bd (diff)
downloadnixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.tar
nixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.tar.gz
nixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.tar.bz2
nixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.tar.lz
nixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.tar.xz
nixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.tar.zst
nixlib-26bf9b28d87ea505e7bfd27d79d0b1d482b8342b.zip
opendkim service: improve `domains` documentation
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/mail/opendkim.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/services/mail/opendkim.nix b/nixos/modules/services/mail/opendkim.nix
index 1cdae9cb6548..af996758f41f 100644
--- a/nixos/modules/services/mail/opendkim.nix
+++ b/nixos/modules/services/mail/opendkim.nix
@@ -49,7 +49,12 @@ in {
 
       domains = mkOption {
         type = types.str;
-        description = "Local domains set; messages from them are signed, not verified.";
+        default = "csl:${config.networking.hostName}";
+        example = "csl:example.com,mydomain.net";
+        description = ''
+          Local domains set (see <literal>opendkim(8)</literal> for more information on datasets).
+          Messages from them are signed, not verified.
+        '';
       };
 
       keyFile = mkOption {
@@ -77,8 +82,6 @@ in {
 
   config = mkIf cfg.enable {
 
-    services.opendkim.domains = mkDefault "csl:${config.networking.hostName}";
-
     users.extraUsers = optionalAttrs (cfg.user == "opendkim") (singleton
       { name = "opendkim";
         group = cfg.group;