about summary refs log tree commit diff
path: root/labernix/modules
diff options
context:
space:
mode:
Diffstat (limited to 'labernix/modules')
-rw-r--r--labernix/modules/config/labernix-pkgs.nix7
-rw-r--r--labernix/modules/module-list.nix4
-rw-r--r--labernix/modules/services/postfix/default.nix1
-rw-r--r--labernix/modules/services/postfix/restrictions.nix53
4 files changed, 0 insertions, 65 deletions
diff --git a/labernix/modules/config/labernix-pkgs.nix b/labernix/modules/config/labernix-pkgs.nix
deleted file mode 100644
index c1f6d807..00000000
--- a/labernix/modules/config/labernix-pkgs.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{
-  nixpkgs.config.packageOverrides = pkgs: {
-    labernix = import ../../pkgs {
-      inherit pkgs;
-    };
-  };
-}
diff --git a/labernix/modules/module-list.nix b/labernix/modules/module-list.nix
deleted file mode 100644
index 5137c672..00000000
--- a/labernix/modules/module-list.nix
+++ /dev/null
@@ -1,4 +0,0 @@
-[
-  ./config/labernix-pkgs.nix
-  ./services/postfix
-]
diff --git a/labernix/modules/services/postfix/default.nix b/labernix/modules/services/postfix/default.nix
deleted file mode 100644
index 4103a41b..00000000
--- a/labernix/modules/services/postfix/default.nix
+++ /dev/null
@@ -1 +0,0 @@
-import ./restrictions.nix # TODO: Dummy for now, implement me!
diff --git a/labernix/modules/services/postfix/restrictions.nix b/labernix/modules/services/postfix/restrictions.nix
deleted file mode 100644
index fbb47f10..00000000
--- a/labernix/modules/services/postfix/restrictions.nix
+++ /dev/null
@@ -1,53 +0,0 @@
-{ config, lib, ... }:
-
-with lib;
-
-let
-  mkRestriction = name: specificDescription: {
-    option.${name} = mkOption {
-      default = null;
-      type = types.nullOr types.list;
-      description = ''
-        A list of restrictions to apply or <option>null</option> to use the
-        built-in default value from Postfix.
-        ${specificDescription}
-      '';
-    };
-    config = let
-      cfg = config.labernix.postfix.restrictions.${name};
-    in mkIf (cfg != null) ''
-      smtpd_${name}_restrictions = ${concatStringsSep ", " cfg}
-    '';
-  };
-  restrictions = mapAttrsToList mkRestriction {
-    client = mkRestriction ''
-      SMTP server access restrictions in the context of a client SMTP connection
-      request.
-    '';
-    data = mkRestriction ''
-      Access restrictions that the Postfix SMTP server applies in the context of
-      the SMTP DATA command.
-    '';
-    end_of_data = mkRestriction ''
-      Access restrictions that the Postfix SMTP server applies in the context of
-      the SMTP END-OF-DATA command.
-    '';
-    etrn = mkRestriction ''
-      SMTP server access restrictions in the context of a client ETRN request.
-    '';
-    helo = mkRestriction ''
-      Restrictions that the Postfix SMTP server applies in the context of the
-      SMTP HELO command.
-    '';
-    recipient = mkRestriction ''
-      Access restrictions that the Postfix SMTP server applies in the context of
-      the RCPT TO command.
-    '';
-    sender = mkRestriction ''
-      Restrictions that the Postfix SMTP server applies in the context of the
-      MAIL FROM command.
-    '';
-  };
-in {
-  options.labernix.postfix.restrictions = mapAttrs mkRestriction restrictions;
-}