summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2020-10-30 22:19:46 +0100
committerAntoine Eiche <lewo@abesis.fr>2020-10-31 08:34:36 +0100
commit843e66864f50f51c6599c5ec21891e43b8ec80c8 (patch)
treee2b718ad357d42f9ec03790f9d7a1ab68dd19a5d /README.md
parenteba19686fba5ff7120f0a2671f6b09fae6be2a94 (diff)
docs: no longer use tagged release but branch instead in docs
Diffstat (limited to 'README.md')
-rw-r--r--README.md57
1 files changed, 29 insertions, 28 deletions
diff --git a/README.md b/README.md
index 5d6ce31..ce2cacc 100644
--- a/README.md
+++ b/README.md
@@ -74,34 +74,35 @@ See the [mailing list archive](https://www.freelists.org/archive/snm/)
### Quick Start
```nix
-{ config, pkgs, ... }:
-{
- imports = [
- (builtins.fetchTarball {
- # Pick a commit from the branch you are interested in
- url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/A-COMMIT-ID/nixos-mailserver-A-COMMIT-ID.tar.gz";
- # And set its hash
- sha256 = "0000000000000000000000000000000000000000000000000000";
- })
- ];
-
- mailserver = {
- enable = true;
- fqdn = "mail.example.com";
- domains = [ "example.com" "example2.com" ];
- loginAccounts = {
- "user1@example.com" = {
- hashedPassword = "$6$/z4n8AQl6K$kiOkBTWlZfBd7PvF5GsJ8PmPgdZsFGN1jPGZufxxr60PoR0oUsrvzm2oQiflyz5ir9fFJ.d/zKm/NgLXNUsNX/";
-
- aliases = [
- "info@example.com"
- "postmaster@example.com"
- "postmaster@example2.com"
- ];
- };
- };
- };
-}
+ { config, pkgs, ... }:
+ let release = "nixos-20.09";
+ in {
+ imports = [
+ (builtins.fetchTarball {
+ url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${release}/nixos-mailserver-${release}.tar.gz";
+ # This hash needs to be updated
+ sha256 = "0000000000000000000000000000000000000000000000000000";
+ })
+ ];
+
+ mailserver = {
+ enable = true;
+ fqdn = "mail.example.com";
+ domains = [ "example.com" "example2.com" ];
+ loginAccounts = {
+ "user1@example.com" = {
+ # mkpasswd -m sha-512 "super secret password" > /hashed/password/file/location
+ hashedPasswordFile = "/hashed/password/file/location";
+
+ aliases = [
+ "info@example.com"
+ "postmaster@example.com"
+ "postmaster@example2.com"
+ ];
+ };
+ };
+ };
+ }
```
For a complete list of options, see `default.nix`.