selfprivacy_fork/static/configuration.nix

28 lines
649 B
Nix
Raw Normal View History

2020-08-24 13:28:59 +03:00
{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
./mailserver.nix
2020-09-01 19:33:37 +03:00
#./goss.nix
./restic.nix
2020-08-24 13:28:59 +03:00
];
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;
2020-09-03 13:05:57 +03:00
users.users.root.openssh.authorizedKeys.keys = [
2020-09-01 19:33:37 +03:00
2020-08-24 13:28:59 +03:00
];
environment.systemPackages = with pkgs; [
htop
vim
letsencrypt
opendkim
2020-09-01 19:33:37 +03:00
restic
2020-08-24 13:28:59 +03:00
];
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = false;
}