39 lines
626 B
Nix
39 lines
626 B
Nix
# SPDX-FileCopyrightText: 2023-2024 Simon Bruder <simon@sbruder.de>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules
|
|
];
|
|
|
|
sbruder = {
|
|
nginx.hardening.enable = true;
|
|
full = false;
|
|
wireguard.home.enable = true;
|
|
};
|
|
|
|
networking.hostName = "okarin2";
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
|
|
virtualHosts."okarin2.sbruder.de" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
|
|
root = pkgs.sbruder.imprint;
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
80
|
|
443
|
|
];
|
|
}
|