From e1ff6fdec43c32e1d2440ec84c95a59f394bc001 Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Tue, 17 Oct 2017 11:52:47 +0200 Subject: [PATCH] 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