40 lines
900 B
Nix
40 lines
900 B
Nix
{ config, ... }:
|
|
|
|
let
|
|
data = import ../../data.nix;
|
|
in
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./networking.nix # generated at runtime by nixos-infect
|
|
./mail-accounts.nix
|
|
../modules/common.nix
|
|
../modules/nix.nix
|
|
];
|
|
|
|
boot.cleanTmpDir = true;
|
|
zramSwap.enable = true;
|
|
networking.hostName = "magenta";
|
|
|
|
services.openssh.enable = true;
|
|
users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan;
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "dmitriy@pleshevski.ru";
|
|
};
|
|
|
|
|
|
# See: https://nixos-mailserver.readthedocs.io/en/latest/options.html
|
|
mailserver = {
|
|
enable = true;
|
|
fqdn = "mail.pleshevski.ru";
|
|
domains = [ "pleshevski.ru" ];
|
|
|
|
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
|
|
# down nginx and opens port 80.
|
|
certificateScheme = 3;
|
|
|
|
hierarchySeparator = "/";
|
|
};
|
|
}
|