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