nixos/machines/Ophanim/options.nix

100 lines
1.6 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"
];
2023-09-11 20:23:04 +02:00
}
];
allowUnfree = true;
conffiles = [
"etcvars"
"security"
"zsh"
];
pkgs = [
"base"
"server"
];
services = [
2023-09-10 15:35:55 +02:00
"acme"
2024-05-09 12:41:24 +02:00
"forgejo"
2024-02-26 17:21:14 +01:00
"tandoor"
2023-09-11 20:23:04 +02:00
# "hydra"
"mailserver"
"mariaDB"
"nextcloud"
"nginx"
"openssh"
2024-11-21 13:05:30 +01:00
"tt-rss"
];
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 = "forgejo";
}
{
domain = "food.${base}";
service = "tandoor";
}
2024-11-21 13:05:30 +01:00
{
domain = "feed.${base}";
service = "tt-rss";
}
];
firewall = {
enable = true;
allowPing = false;
allowedUDPPorts = [
22
80
443
7776
];
allowedTCPPorts = [
80
443
7776
];
};
};
}