system/machines/magenta/default.nix

41 lines
900 B
Nix
Raw Normal View History

2022-10-13 23:11:12 +03:00
{ config, ... }:
2022-10-13 07:47:31 +03:00
let
data = import ../../data.nix;
in
{
imports = [
./hardware-configuration.nix
./networking.nix # generated at runtime by nixos-infect
2022-10-13 23:11:12 +03:00
./mail-accounts.nix
2022-10-13 07:47:31 +03:00
../modules/common.nix
2022-10-13 23:11:12 +03:00
../modules/nix.nix
2022-10-13 07:47:31 +03:00
];
boot.cleanTmpDir = true;
zramSwap.enable = true;
networking.hostName = "magenta";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = data.publicKeys.users.jan;
2022-10-13 23:11:12 +03:00
security.acme = {
acceptTerms = true;
defaults.email = "dmitriy@pleshevski.ru";
};
# See: https://nixos-mailserver.readthedocs.io/en/latest/options.html
2022-10-13 23:11:12 +03:00
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 = "/";
2022-10-13 23:11:12 +03:00
};
2022-10-13 07:47:31 +03:00
}