Format project using nixfmt rfc candidate.
This commit is contained in:
parent
1f63817684
commit
a9f7fe416f
91 changed files with 1347 additions and 1000 deletions
|
@ -3,9 +3,11 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
with lib;
|
||||
let
|
||||
cfg = config.machine;
|
||||
in {
|
||||
in
|
||||
{
|
||||
config.machine = rec {
|
||||
hostName = "Ophanim";
|
||||
domain = "ophanim.de";
|
||||
|
@ -18,7 +20,10 @@ in {
|
|||
mailAccounts = [
|
||||
{
|
||||
name = "derped";
|
||||
aliases = ["postmaster" "baensch"];
|
||||
aliases = [
|
||||
"postmaster"
|
||||
"baensch"
|
||||
];
|
||||
}
|
||||
];
|
||||
allowUnfree = true;
|
||||
|
@ -42,37 +47,48 @@ in {
|
|||
"nginx"
|
||||
"openssh"
|
||||
];
|
||||
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";
|
||||
}
|
||||
];
|
||||
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";
|
||||
}
|
||||
];
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowPing = false;
|
||||
allowedUDPPorts = [22 80 443 7776];
|
||||
allowedTCPPorts = [80 443 7776];
|
||||
allowedUDPPorts = [
|
||||
22
|
||||
80
|
||||
443
|
||||
7776
|
||||
];
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
7776
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue