45 lines
861 B
Nix
45 lines
861 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
admin = "admin@informis.land";
|
|
|
|
hostname = config.networking.hostName;
|
|
|
|
gateway = "172.86.179.17";
|
|
|
|
in {
|
|
config = mkIf (config.fudo.common.site == "joes") {
|
|
time.timeZone = "America/Winnipeg";
|
|
|
|
services.cron = {
|
|
mailto = admin;
|
|
};
|
|
|
|
networking = {
|
|
domain = "informis.land";
|
|
search = ["informis.land" "fudo.org"];
|
|
firewall.enable = false;
|
|
|
|
defaultGateway = gateway;
|
|
# defaultGateway6 = gateway6;
|
|
};
|
|
|
|
fudo.node-exporter = {
|
|
enable = false;
|
|
hostname = hostname;
|
|
};
|
|
|
|
security.acme.certs."${hostname}.informis.land" = {
|
|
email = "admin@informis.land";
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedTlsSettings = true;
|
|
};
|
|
};
|
|
}
|