make configuration a nixos module (WIP)
I modified the configuration file to be a proper nixos module, because that's exactly the thing nixos modules are for. With this change, one can easily add this module to an existing nixos system by adding such a file to imports
:
{ config, pkgs, ... }:
{
imports = [
(builtins.fetchTarball "github.com/Infinisil/nixos-mailserver/archive/master.tar.gz")
];
mailserver = {
enable = true;
domain = "example.com";
login_accounts = {
user1 = {
name = "test";
hashedPassword = "$6$Mmmx1U68$Twd8acMxqHoqFyfz3SPz1pzjY/D36gayAdpUTFMvfrHQUwObF3acuLz2GYAGFzsjHLEK/dPIv3pCwj3kZ5T2u.";
};
};
valiases = {
admin = "user1";
};
};
}
What I intend to do yet is update the README.