nixos/machines/Ophanim/options.nix

79 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
config,
lib,
...
}:
with lib; let
2019-10-08 13:15:38 +02:00
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";
2023-09-11 20:23:04 +02:00
administrators = [
{
name = "derped";
id = 1337;
}
];
mailAccounts = [
{
name = "derped";
aliases = ["postmaster" "baensch"];
}
];
allowUnfree = true;
conffiles = [
"etcvars"
"security"
"zsh"
];
pkgs = [
"base"
"server"
];
services = [
2023-09-10 15:35:55 +02:00
"acme"
"gitea"
2024-02-26 17:21:14 +01:00
"tandoor"
2023-09-11 20:23:04 +02:00
# "hydra"
"mailserver"
"mariaDB"
"nextcloud"
"nginx"
"openssh"
];
2023-09-11 20:23:04 +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";
}
2024-02-26 17:21:14 +01:00
{
domain = "food.${base}";
service = "tandoor";
}
2023-09-11 20:23:04 +02:00
];
firewall = {
enable = true;
allowPing = false;
2023-09-11 20:23:04 +02:00
allowedUDPPorts = [22 80 443 7776];
allowedTCPPorts = [80 443 7776];
};
};
}