nixos/machines/DavidsServer/options.nix

44 lines
831 B
Nix
Raw Permalink Normal View History

2019-08-27 16:08:55 +02:00
{ lib, ... }:
with lib;
{
imports = [
../../options/machine.nix
];
config.machine = rec {
hostName = "DavidsServer";
administrators = [ { name = "david"; id = 1000; } ];
mailAccounts = [ { name = "david"; aliases = []; } ];
2019-08-27 16:08:55 +02:00
domain = "davids-planet.de";
allowUnfree = true;
conffiles = [
"security"
"zsh"
];
pkgs = [
"base"
"server"
];
services = [
"fail2ban"
"mailserver"
"mariaDB"
"nextcloud"
"nginx"
"openssh"
];
vHosts = (let base = domain; in [
{ domain = base; service = "nextcloud"; }
{ domain = "mail.${base}"; service = "mail"; }
]);
firewall = {
enable = true;
2019-08-27 16:08:55 +02:00
allowPing = false;
allowedUDPPorts = [ 22 80 443 ];
allowedTCPPorts = [ 80 443 ];
};
};
}