51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ config, pkgs, ... }:
|
|
{
|
|
imports = [
|
|
./utils/bento.nix
|
|
./utils/modules/sops.nix
|
|
./utils/modules/lego/lego.nix
|
|
./utils/modules/nginx.nix
|
|
|
|
# ./modules/self-service-password.nix
|
|
./modules/rspamd.nix
|
|
./modules/openldap.nix
|
|
./modules/dovecot.nix
|
|
./modules/postfix.nix
|
|
./modules/autoconfig.nix
|
|
|
|
./utils/modules/borgbackup.nix
|
|
# ./utils/modules/promtail
|
|
# ./utils/modules/victoriametrics
|
|
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
networking.hostName = "mail";
|
|
networking.domain = "social-grow.tech";
|
|
|
|
services.openssh.enable = true;
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHC9YODKEKu5bOC61qkpPd8QeZxbNPCQKgfh8xUFMdV0" # dominik
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIRQuPqH5fdX3KEw7DXzWEdO3AlUn1oSmtJtHB71ICoH Generated By Termius"
|
|
];
|
|
|
|
# backups
|
|
borgbackup.repo = "u428777-sub1@u428777.your-storagebox.de:borg";
|
|
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 22 80 443 ];
|
|
};
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 60d";
|
|
};
|
|
|
|
system.stateVersion = "22.11";
|
|
}
|