nixos/machines/Ophanim/options.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2019-10-08 13:15:38 +02:00
{ config, lib, ... }:
with lib;
2019-10-08 13:15:38 +02:00
let
cfg = config.machine;
in {
2019-06-22 23:58:08 +02:00
config.machine = rec {
hostName = "Ophanim";
2019-10-08 13:15:38 +02:00
domain = "ophanim.de";
2019-04-13 00:05:39 +02:00
administrators = [ { name = "derped"; id = 1337; } ];
mailAccounts = [ { name = "derped"; aliases = [ "postmaster" "baensch" ]; } ];
allowUnfree = true;
conffiles = [
"etcvars"
"security"
"zsh"
];
pkgs = [
"base"
"server"
];
services = [
"fail2ban"
"gitea"
# "hydra"
"mailserver"
"mariaDB"
"nextcloud"
"nginx"
"openssh"
];
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"; }
2019-06-22 23:58:08 +02:00
{ domain = "storage.${base}"; service = "nextcloud"; }
{ domain = "mail.${base}"; service = "mail"; }
{ domain = "git.${base}"; service = "gitea"; }
]);
firewall = {
enable = true;
allowPing = false;
allowedUDPPorts = [ 22 80 443 ];
allowedTCPPorts = [ 80 443 ];
};
};
}