nix-config/hosts/mail/default.nix
Jordan Holt ae4a0ebf84
All checks were successful
Check flake / build-amd64-linux (push) Successful in 4m20s
hosts/server: always add root SSH key
2025-03-30 17:02:36 +01:00

43 lines
659 B
Nix

{
inputs,
...
}:
{
imports = [
inputs.disko.nixosModules.disko
./hardware-configuration.nix
./disko-config.nix
./mail.nix
../server.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
networking = {
hostId = "08ac2f14";
firewall = {
enable = true;
allowedTCPPorts = [
22 # SSH
];
};
};
modules = {
services = {
borgmatic = {
enable = true;
directories = [
"/var/dkim"
"/var/lib"
"/var/vmail"
];
repoPath = "ssh://kg2mpt28@kg2mpt28.repo.borgbase.com/./repo";
};
};
};
system.stateVersion = "22.11";
}