2019-03-23 02:50:48 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../options/machine.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config.machine = {
|
|
|
|
hostName = "Ophanim";
|
|
|
|
domain = "ophanim.de";
|
|
|
|
allowUnfree = true;
|
|
|
|
conffiles = [
|
|
|
|
"etcvars"
|
|
|
|
"security"
|
|
|
|
"zsh"
|
|
|
|
];
|
|
|
|
pkgs = [
|
|
|
|
"base"
|
|
|
|
"emacs"
|
|
|
|
"server"
|
|
|
|
];
|
|
|
|
services = [
|
|
|
|
"fail2ban"
|
|
|
|
"gitea"
|
|
|
|
"hydra"
|
|
|
|
"mailserver"
|
|
|
|
"mariaDB"
|
|
|
|
"nextcloud"
|
|
|
|
"nginx"
|
|
|
|
"openssh"
|
2019-04-11 23:45:09 +02:00
|
|
|
"webblog"
|
2019-03-23 02:50:48 +01:00
|
|
|
];
|
|
|
|
firewall = {
|
|
|
|
allowPing = false;
|
|
|
|
allowedUDPPorts = [ 22 80 443 ];
|
|
|
|
allowedTCPPorts = [ 80 443 ]; # 5222 5269 ];
|
|
|
|
allowedUDPPortRanges = [];
|
|
|
|
allowedTCPPortRanges = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|