2023-05-06 10:54:03 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../modules
|
|
|
|
|
2023-11-25 12:33:26 +01:00
|
|
|
./services/static-sites.nix
|
2023-05-06 10:54:03 +02:00
|
|
|
./services/proxy.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
sbruder = {
|
|
|
|
nginx.hardening.enable = true;
|
|
|
|
full = false;
|
|
|
|
wireguard.home.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "okarin";
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
virtualHosts."okarin.sbruder.xyz" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
root = pkgs.sbruder.imprint;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
80
|
|
|
|
443
|
|
|
|
];
|
|
|
|
}
|