2019-05-09 18:28:40 +02:00
|
|
|
{ lib, ... }:
|
2019-03-23 02:50:48 +01:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../options/machine.nix
|
|
|
|
];
|
|
|
|
|
2019-06-22 23:58:08 +02:00
|
|
|
config.machine = rec {
|
2019-03-23 02:50:48 +01:00
|
|
|
hostName = "Ophanim";
|
2019-04-13 00:05:39 +02:00
|
|
|
administrators = [ { name = "derped"; id = 1337; } ];
|
2019-03-23 02:50:48 +01:00
|
|
|
domain = "ophanim.de";
|
|
|
|
allowUnfree = true;
|
|
|
|
conffiles = [
|
|
|
|
"etcvars"
|
|
|
|
"security"
|
|
|
|
"zsh"
|
|
|
|
];
|
|
|
|
pkgs = [
|
|
|
|
"base"
|
|
|
|
"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
|
|
|
];
|
2019-06-22 23:58:08 +02:00
|
|
|
vHosts = (let base = domain; in [
|
|
|
|
{ domain = base; service = "simple"; }
|
|
|
|
{ domain = "builder.${base}"; service = "hydra"; }
|
|
|
|
{ domain = "cache.${base}"; service = "cache"; }
|
|
|
|
{ domain = "storage.${base}"; service = "nextcloud"; }
|
|
|
|
{ domain = "mail.${base}"; service = "mail"; }
|
|
|
|
{ domain = "git.${base}"; service = "gitea"; }
|
|
|
|
]);
|
2019-03-23 02:50:48 +01:00
|
|
|
firewall = {
|
|
|
|
allowPing = false;
|
|
|
|
allowedUDPPorts = [ 22 80 443 ];
|
|
|
|
allowedTCPPorts = [ 80 443 ]; # 5222 5269 ];
|
|
|
|
allowedUDPPortRanges = [];
|
|
|
|
allowedTCPPortRanges = [];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|