mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
51 lines
1,002 B
Nix
51 lines
1,002 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware.nix
|
|
# db
|
|
./postgres.nix
|
|
# nginx
|
|
../../services/nginx.nix
|
|
./virtualhosts.nix
|
|
# security
|
|
./fail2ban.nix
|
|
# services
|
|
./mail.nix
|
|
./asterisk.nix
|
|
./gitea.nix
|
|
./nextcloud.nix
|
|
./bitwarden.nix
|
|
# comms
|
|
./znc.nix
|
|
./weechat.nix
|
|
./matrix.nix
|
|
];
|
|
|
|
meta.deploy.ssh.host = "athame.kittywit.ch";
|
|
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.version = 2;
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
networking = {
|
|
hostName = "athame";
|
|
domain = "kittywit.ch";
|
|
hostId = "7b0ac74e";
|
|
useDHCP = false;
|
|
interfaces.enp1s0.useDHCP = true;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 5160 5060 ];
|
|
networking.firewall.allowedUDPPorts = [ 5160 5060 ];
|
|
networking.firewall.allowedTCPPortRanges = [{
|
|
from = 10000;
|
|
to = 20000;
|
|
}];
|
|
networking.firewall.allowedUDPPortRanges = [{
|
|
from = 10000;
|
|
to = 20000;
|
|
}];
|
|
system.stateVersion = "20.09";
|
|
}
|
|
|