From 6ee342d96352eb10fd9615ca92085cc4a305db6f Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Sat, 23 Sep 2017 09:58:10 +0200 Subject: [PATCH 1/4] Update Readme (acme) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c3393d..88c8d87 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ None so far. ### v1.2 * Certificates - - [ ] Let's Encrypt + - [x] Let's Encrypt * Sieves - [ ] Allow user defined sieve scripts * User Aliases From e1ff6fdec43c32e1d2440ec84c95a59f394bc001 Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Tue, 17 Oct 2017 11:52:47 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 88c8d87..1b4f6c5 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,34 @@ None so far. * Changed structure to Nix Modules * Adds Sieve support +### How to Deploy + +``` +{ config, pkgs, ... }: +{ + imports = [ + (builtins.fetchTarball "https://github.com/r-raymond/nixos-mailserver/releases/tag/v1.1-rc2") + ]; + + mailserver = { + enable = true; + domain = "example.com"; + login_accounts = { + user1 = { + name = "test"; + hashedPassword = "$6$Mmmx1U68$Twd8acMxqHoqFyfz3SPz1pzjY/D36gayAdpUTFMvfrHQUwObF3acuLz2GYAGFzsjHLEK/dPIv3pCwj3kZ5T2u."; + }; + }; + valiases = { + admin = "user1"; + }; + }; +} +``` + +For a complete list of options, see `default.nix`. + + ### How to Test You can test the setup via `nixops`. After installation, do From 2262f7a67ebaa943a2c2156a0c6bcd9a9d786eaf Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Tue, 17 Oct 2017 11:53:53 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b4f6c5..086746e 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ None so far. ### How to Deploy -``` +```nix { config, pkgs, ... }: { imports = [ From d8832b9cf82fd044eb8648f81fb5d80408809e37 Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Tue, 17 Oct 2017 17:29:07 +0200 Subject: [PATCH 4/4] Fix error in example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 086746e..cfdc99b 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ None so far. hashedPassword = "$6$Mmmx1U68$Twd8acMxqHoqFyfz3SPz1pzjY/D36gayAdpUTFMvfrHQUwObF3acuLz2GYAGFzsjHLEK/dPIv3pCwj3kZ5T2u."; }; }; - valiases = { + virtualAliases = { admin = "user1"; }; };