{ pkgs, ... }: {
  imports = [
    ./hardware-configuration.nix
    ./mailserver.nix
	#./goss.nix
	./restic.nix
  ];

  boot.cleanTmpDir = true;
  networking.hostName = "nixos-mailserver";
  networking.firewall.allowPing = true;
  networking.firewall.allowedTCPPorts = [ 22 443 80 143 993 587 25 465 ];
  networking.firewall.allowedUDPPorts = [ 443 80 143 993 587 25 465 ];
  services.openssh.enable = true;
	"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC5Si4/wpG3QaMPYWJ0WOnb9nvi+glahYEqewbPPiq64H2JjlDz3Sz6Kph5vnKX+c7ULuXI/vchiGy6l5UQZnX2bVw3g4loiGMGhe78FZlKFVJShEPqsJuXfRMz1FUtp9J/LZOfzsXQp8xIhiXL8ymim+Zvd8nvCN+iHY5yMNQxCXUx6NZ5FYbk2eaO0fcJnXiSv+/MZzIXZGZuxCLog2QWHOx4R6L8dSw4pxCFNlDsrX8GikkKL58nIb4xGe6+odZH0XUSKU4Emw/j7FXIzVuljy7Vji1O6LDnFf65EJTSOwV26uJi+cHCfM/f3smq6fdnWbUdLrlpG9ztZzVHSyC4pHX3xeTiXo2EduITjJfgq4E5az83BayUQeRD6jD2wxAdWj4/fvTa0t58x35xwJ9G/FrNSH93tDhI5aKjbbrkgwcPuNls174lslXK5w6vkRAXQudcV85MXTFsJekC3NhUgtwFIlEPEuS/CqVst5yUZBpMqVsJoSCMiaaWvXDud8M= dragonhaze@ilchub.net"
	
  ];
  environment.systemPackages = with pkgs; [
    htop
    vim
    letsencrypt
    opendkim
	restic
  ];
  system.autoUpgrade.enable = true;
  system.autoUpgrade.allowReboot = false;
}
