From ab33e87cea1e3b980b5da258ef6d75d93a39e05e Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Mon, 16 Sep 2019 18:14:20 +0200 Subject: [PATCH] Delete leftover services.nix --- mail-server/services.nix | 44 ---------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 mail-server/services.nix diff --git a/mail-server/services.nix b/mail-server/services.nix deleted file mode 100644 index 1af0448..0000000 --- a/mail-server/services.nix +++ /dev/null @@ -1,44 +0,0 @@ -# nixos-mailserver: a simple mail server -# Copyright (C) 2016-2018 Robin Raymond -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see - - -{ config, pkgs, lib, ... }: - -let - cfg = config.mailserver; - - # cert :: PATH - cert = if cfg.certificateScheme == 1 - then cfg.certificateFile - else if cfg.certificateScheme == 2 - then "${cfg.certificateDirectory}/cert-${cfg.fqdn.pem" - else ""; - - # key :: PATH - key = if cfg.certificateScheme == 1 - then cfg.keyFile - else if cfg.certificateScheme == 2 - then "${cfg.certificateDirectory}/key-${cfg.fqdn}.pem" - else ""; -in -{ - - imports = [ - ./rmilter.nix - ./postfix.nix key - ./dovecot.nix - ]; -}