summary refs log tree commit diff
path: root/nixos/modules/services/mail/postgrey.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-02 15:19:00 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2017-01-02 15:19:00 +0100
commite2dd0799a8cf252d4a8b59006f7b43fa536ee3fb (patch)
treee3e619dbb024070794b863120fc662009e4219dc /nixos/modules/services/mail/postgrey.nix
parente196ad2c66c13eefa109259e60e91b20b0eb2d55 (diff)
downloadnixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.tar
nixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.tar.gz
nixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.tar.bz2
nixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.tar.lz
nixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.tar.xz
nixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.tar.zst
nixpkgs-e2dd0799a8cf252d4a8b59006f7b43fa536ee3fb.zip
postgrey: fix submodule syntax
Diffstat (limited to 'nixos/modules/services/mail/postgrey.nix')
-rw-r--r--nixos/modules/services/mail/postgrey.nix42
1 files changed, 23 insertions, 19 deletions
diff --git a/nixos/modules/services/mail/postgrey.nix b/nixos/modules/services/mail/postgrey.nix
index c6fec566c0b..73f271d2a31 100644
--- a/nixos/modules/services/mail/postgrey.nix
+++ b/nixos/modules/services/mail/postgrey.nix
@@ -10,30 +10,34 @@ with lib; let
   socket = with types; addCheck (either (submodule unixSocket) (submodule inetSocket)) (x: x ? "path" || x ? "port");
 
   inetSocket = with types; {
-    addr = mkOption {
-      type = nullOr string;
-      default = null;
-      example = "127.0.0.1";
-      description = "The address to bind to. Localhost if null";
-    };
-    port = mkOption {
-      type = natural';
-      default = 10030;
-      description = "Tcp port to bind to";
+    options = {
+      addr = mkOption {
+        type = nullOr string;
+        default = null;
+        example = "127.0.0.1";
+        description = "The address to bind to. Localhost if null";
+      };
+      port = mkOption {
+        type = natural';
+        default = 10030;
+        description = "Tcp port to bind to";
+      };
     };
   };
 
   unixSocket = with types; {
-    path = mkOption {
-      type = path;
-      default = "/var/run/postgrey.sock";
-      description = "Path of the unix socket";
-    };
+    options = {
+      path = mkOption {
+        type = path;
+        default = "/var/run/postgrey.sock";
+        description = "Path of the unix socket";
+      };
 
-    mode = mkOption {
-      type = string;
-      default = "0777";
-      description = "Mode of the unix socket";
+      mode = mkOption {
+        type = string;
+        default = "0777";
+        description = "Mode of the unix socket";
+      };
     };
   };