misc_nixos-mailserver/nixops/single-server.nix

29 lines
645 B
Nix
Raw Permalink Normal View History

2017-08-11 12:06:54 +00:00
{
network.description = "mail server";
mailserver =
{ config, pkgs, ... }:
{
imports = [
2017-09-02 10:58:25 +00:00
./../default.nix
2017-08-11 12:06:54 +00:00
];
2017-09-02 10:58:25 +00:00
mailserver = {
enable = true;
domain = "example.com";
2017-09-13 08:16:47 +00:00
hostPrefix = "mail";
loginAccounts = {
user1 = {
hashedPassword = "$6$/z4n8AQl6K$kiOkBTWlZfBd7PvF5GsJ8PmPgdZsFGN1jPGZufxxr60PoR0oUsrvzm2oQiflyz5ir9fFJ.d/zKm/NgLXNUsNX/";
};
};
virtualAliases = {
info = "user1";
postmaster = "user1";
abuse = "user1";
};
2017-09-02 10:58:25 +00:00
};
2017-08-11 12:06:54 +00:00
};
}